Description ​
TCustomMap is the abstract base class for all two-dimensional mapped data structures in Graphics32, including TCustomBitmap32, ordinal maps (TByteMap, TFloatMap), and vector maps (TVectorMap). It establishes standard Width and Height management, buffer resizing routines, and dimension change notifications via OnResize.
Constructors ​
| Name | Description |
|---|---|
| Create | Initializes a new TCustomMap instance, optionally setting initial dimensions. |
Methods ​
| Name | Description |
|---|---|
| Clear | Clears the map content or resets buffer memory. |
| Delete | Sets map dimensions to zero and releases allocated buffer memory. |
| Empty | Returns True if either Width or Height is zero. |
| Resized | Triggers internal size change processing and fires OnResize. |
| SetSize | Changes the map dimensions to specified width and height. |
| SetSizeFrom | Copies dimensions from another map object or persistent container. |
| ChangeSize | Protected virtual method that performs buffer allocation and dimension updates. |
| SetHeight | Protected setter method for the Height property. |
| SetWidth | Protected setter method for the Width property. |
Properties ​
| Name | Type | Description |
|---|---|---|
| Height | Integer | Vertical dimension of the map in units or pixels. |
| Width | Integer | Horizontal dimension of the map in units or pixels. |
Events ​
| Name | Type | Description |
|---|---|---|
| OnResize | TNotifyEvent | Fired whenever the map dimensions (Width or Height) change. |