[vtkusers] ImageData Transparency

David Gobbi david.gobbi at gmail.com
Thu Oct 28 09:08:53 EDT 2010


Hi Alex,

You can also use vtkImageAppendComponents to add an alpha channel
to an image.  Use RGBA for color images, or use two components
(Luminance-Alpha) for greyscale images (works only for 8-bit images).

  David

On Thu, Oct 28, 2010 at 6:59 AM, Alex Southern <mrapsouthern at gmail.com> wrote:
> Ah of course, a mask.
>
> Thanks that's perfect.
> Cheers
> A.
>
> On 28.10.2010 15:28, David Doria wrote:
>
> On Thu, Oct 28, 2010 at 5:56 AM, Alex Southern <mrapsouthern at gmail.com>
> wrote:
>>
>> Hi,
>>
>> ImageData must be rectangular, but I want certain points in the imageData
>> to be transparent. I have seen the SetOpacity setting,  but that affects all
>> the ImageData.
>>
>> Can anyone tell me what my options are for this?
>>
>> Thanks
>> A
>
> This should do the trick:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/Transparency
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list