Declarationfunction IsEmpty(QuickCheck: Boolean = True): boolean;
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
only checks the active bitmap. It does not consider multiple layers.
- Also see IsBlank
which returns true if the image is only one color
Example// Does TImageEnView have any content
haveContent := ImageEnView1.IsEmpty( False ) and (ImageEnView1.LayersCount <= 1);
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)"