xtd
0.2.0
Loading...
Searching...
No Matches
◆
get_alpha()
[1/2]
const
xtd::byte
* xtd::drawing::image::get_alpha
(
)
const
Gets the image alpha pointer, which represents the alpha data of the image.
Returns
The pointer or alpha image.
Remarks
The size of this data is 1 byte (alpha) *
height()
*
width()
.
If the image has no handle, such as an empty image, this method returns nullptr.
Warning
Be careful when using this pointer as there is no control and you can exceed its size and create irreparable problems.
Remarks
To access the position of a specific pixel, it's best to use the xtd::drawing::image::get_pixel and xtd::drawing::image::set_pixel methods.
xtd
drawing
image
Generated on Sat Sep 14 2024 21:25:20 for xtd by
Gammasoft
. All rights reserved.