CreateCopy(Icon: IGxIcon; Size: IGxSize);
Icon. The icon that should be copied.
Size. Parameters, in accordance with which the icon is scaled.
The CreateCopy constructor creates an icon copy and scales it to the sizes specified in the Size sizes parameter.
Function GetIconCopy(SourceIcon: IGxIcon): IGxIcon;
Var
IconSize, NewSize: IGxSize;
DestinationIcon: IGxIcon;
Begin
IconSize := SourceIcon.Size;
NewSize := New GxSize.Create(IconSize.Width * 2, IconSize.Height * 2);
DestinationIcon := New GxIcon.CreateCopy(SourceIcon, NewSize);
Return DestinationIcon;
End Function GetIconCopy;
The function returns the copy of the icon passed as an input parameter, doubled in size.
See also: