 |
RawImageDataCheckTransparentPixels Method |
CheckTransparentPixels returns true when the image data contains transparent pixels (where alpha is less the 1); for fully opaque image false is returned.
Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static bool CheckTransparentPixels(
IntPtr imageDataPtr,
int width,
int height,
int stride,
int alphaOffset = 3,
int pixelSize = 4
)
Parameters
- imageDataPtr IntPtr
- IntPtr to byte array with image data
- width Int32
- texture width in pixels
- height Int32
- texture height in pixels
- stride Int32
- one row size in bytes
- alphaOffset Int32 (Optional)
- specifies the offset of the alpha byte in the pixel bytes (for BGRA the correct value is 3)
- pixelSize Int32 (Optional)
- size of one pixel in bytes (4 by default for BGRA)
Return Value
Booleantrue when the loaded image contains transparent pixels (where alpha is less the 1); for fully opaque image false is returned
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Common.RawImageData.CheckTransparentPixels(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]
See Also