Replaces existing alpha channel data or creates new alpha channel data.
public void SetAlphaImage(
Leadtools.RasterImage alphaImage
)
Public Sub SetAlphaImage( _
ByVal alphaImage As Leadtools.RasterImage _
)
public void SetAlphaImage(
Leadtools.RasterImage alphaImage
)
- (BOOL)setAlphaImage:(LTRasterImage *)alphaImage error:(NSError **)error
public void setAlphaImage(RasterImage alphaImage)
function Leadtools.RasterImage.SetAlphaImage(
alphaImage
)
public:
void SetAlphaImage(
Leadtools.RasterImage^ alphaImage
)
alphaImage
Source RasterImage which references the image that is used to create or replace the alpha channel data.
Typically, an alpha channel contains a mask that is used for transparency. This method, together with CreateAlphaImage and the LEADTOOLS region processing methods, lets you use the alpha channel to implement transparency.
Only 16-bit, 32-bit and 64-bit images can have an alpha channel. If the image is of any other color resolution, this method converts the image to 32-bit before it replaces the alpha channel. (If you want 16-bit, you should change it using ColorResolutionCommand, if necessary, before calling this method.)
For 64-bit images, the alphaImage parameter is converted to 16 bit grayscale before replacing the alpha channel. If the image is 48-bit, it will be converted to 64-bit and then have the alpha information added to it.
The alphaImage parameter does not have to be grayscale. This method converts the data from the alphaImage parameter to the necessary grayscale or 1-bit format as it replaces the alpha channel in the image. (The alphaImage, itself, remains unchanged.)
This method does not support signed images.
For more information, refer to Implementing Transparency.
For more information, refer to Saving A Region.
For an example, refer to CreateAlphaImage.
Products |
Support |
Feedback: SetAlphaImage Method - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
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.