LEADTOOLS Image File Support (Leadtools.Codecs assembly)

MaskImage Property

Show in webframe







The transparency mask channel of the saved PSD layer.
Syntax
public RasterImage MaskImage {get; set;}
'Declaration
 
Public Property MaskImage As RasterImage
'Usage
 
Dim instance As CodecsPsdLayerInfo
Dim value As RasterImage
 
instance.MaskImage = value
 
value = instance.MaskImage
public RasterImage MaskImage {get; set;}

            

            
 
get_MaskImage();
set_MaskImage(value);
Object.defineProperty('MaskImage');
public:
property RasterImage^ MaskImage {
   RasterImage^ get();
   void set (    RasterImage^ value);
}

Property Value

A Leadtools.RasterImage object that specifies the transparency mask channel of the saved PSD layer.
Remarks

This is an 8-bit grayscale image. The value of each pixel indicates the amount of transparency the data of the original image has at this point. For example, if the value is 0xFF at a certain point, the pixel value of the layer image at that point is not transparent at all. If the value was 0x00, the pixel value of the layer image at that point is fully transparent. If the value is between these two, it indicates the degree of transparency the pixel value of the layer image has at that point.

When loading, if you set the LoadMaskImage property to true, then this property will hold an Leadtools.RasterImage object that represents the transparency mask channel found in the PSD file.

If the mask image does not need to be loaded, pass false to LoadMaskImage. The value of MaskImage will not be used. Passing false to LoadMaskImage saves the transparency mask as full white image, which represents full visibility of the layer.

When saving, if this is a valid image, then it should be of the same width and height as the corresponding layer image. It should also be an 8-bit grayscale image.

For more information, refer to FILE FORMATS SPECIFICATION from Adobe.

Example
For an example, refer to RasterCodecs.LoadPsdLayer and RasterCodecs.SavePsdWithLayers.
Requirements

Target Platforms

See Also

Reference

CodecsPsdLayerInfo Class
CodecsPsdLayerInfo Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.