Using TImage32
About the documentation
Appearance
Resets bitmap dimensions to zero and deallocates pixel buffer memory.
procedure Delete; override;
Delete sets Width and Height to zero and releases allocated pixel buffer memory.
Delete
Width
Height
Bitmap.Delete;