ImageEn, unit imageenview

TImageEnView.IsEmpty

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

Note:
IsEmpty only checks the active bitmap. It does not consider multiple layers.
See also: 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);

See Also

TIEBitmap.IsEmpty
TIEBitmap.IsBlank

Compatibility Information

Prior to v10.0.1, TImageEnView had an IsEmpty2 property, which is the same as IsEmpty(False).
I.e. change code that is "ImageEnView1.IsEmpty2" to "ImageEnView1.IsEmpty(False)"

For C++Builder, you will need to add an empty parenthesis to maintiain existing functionality, i.e. IsEmpty must be changed to IsEmpty().