ImageEn, unit imageenview |
|
TImageEnView.IsEmpty
Declaration
function IsEmpty(QuickCheck: Boolean = True): boolean;
Description
Returns True if the size of the image is less than 2 x 2 pixels.
If QuickCheck=False, IsEmpty returns true if an image has not been assigned or loaded
Notes:
-
IsEmpty only checks the active bitmap. It does not consider multiple layers.
- Also see
IsBlank which returns true if the image is only one color
Compatibility Information
ImageEn v10.0.1 and older had an IsEmpty2 property, which is the same as IsEmpty(False).
I.e. change code that is "ImageEnView1.IsEmpty2" to "ImageEnView1.IsEmpty(False)"
Example
// Does TImageEnView have any content
haveContent := ImageEnView1.IsEmpty( False ) and (ImageEnView1.LayersCount <= 1);