The transparency mask channel of the saved PSD layer.
public Leadtools.RasterImage MaskImage {get; set;}
Public Property MaskImage As Leadtools.RasterImage
public Leadtools.RasterImage MaskImage {get; set;}
get_MaskImage();
set_MaskImage(value);
Object.defineProperty('MaskImage');
public:
property Leadtools.RasterImage^ MaskImage {
Leadtools.RasterImage^ get();
void set ( Leadtools.RasterImage^ );
}
A RasterImage object that specifies the transparency mask channel of the saved PSD layer.
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 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.
For an example, refer to RasterCodecs.LoadPsdLayer and RasterCodecs.SavePsdWithLayers.
Products |
Support |
Feedback: MaskImage Property - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.