TCustomIcon.SetSize procedure
Sets the size (width, height) for the image in the Icon.
Declaration
procedure SetSize(AWidth: Integer; AHeight: Integer); overrideArguments
AWidth | New Width for the icon. |
AHeight | New Height for the icon. |
Description
SetSize is an overridden method used to set the size for the image
in the icon to the values specified in
AWidth and
AHeight. SetSize implements the abstract virtual method defined in
the ancestor class. SetSize stores the argument values in an internal member
used to track the requested icon image size used in the
GetBestIndexForSize method.
SetSize raises an EInvalidGraphicOperation exception when an icon
size has been selected by setting a value in the Current property.
SetSize is called from the ReadStream method.
Errors
Raises an EInvalidGraphicOperation with the message in rsIconImageSizeChange when Current contains a value other than -1.
See also
- Current
- ReadStream
- GetBestIndexForSize
- SetSize
- EInvalidGraphicOperation
- rsIconImageSizeChange
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
