GraphicsFormats Xojo plugin

RawICOExporter.SaveToString Method

Saves a single bitmap to ICO formatted string.

SaveToString(
   image as RawBitmap) as String

Parameters

image
The bitmap to be saved into ICO file. This must be RGB color space, and 8 bit per channel bitmap.

Returns

String
ICO formatted string or empty string if there was error.

Remarks

Note this method will clear images that have been added with AddBitmap.

This method is basically macro for:
Clear added bitmaps
AddBitmap (one bitmap)
SaveBitmapsToString

See Also

RawICOExporter Class