To load images or icons from ByteArrays, use the loadFromByteObjects:- offsetsIntoByteObjects: method.The following code illustrates how to load a PCX format image from an array of ByteArrays. It assumes that the imageStorage method answers the array of ByteArrays created in the previous example.Icons are loaded from ByteArrays in a similar fashion. As with loadFromFile:, the loadFromByteObjects:offsetsIntoByteObjects: method for icon file formats answers an array of CgIcons.
|