Picture.CopyColorChannels
From Xojo Documentation
Method
Copies just the color information from a Picture.
Notes
This method returns a clone of the color data in a picture with a solid mask.
The returned Picture object:
- has the same dimensions, resolutions and scale factors as the original.
- is a mutable bitmap
- uses alpha channels instead of masks (i.e. HasAlphaChannel will be True)
- is entirely opaque
Exceptions
- UnsupportedOperationException: When called on a vector or multi-representation image
- OutOfMemoryException if the picture cannot be created
Examples
Get the color channels from MyPic: