BitMapResourceEncoder |
IResourceEncoder |
Name | Description |
---|---|
Encode | Encodes a bitmap into a ResourceKey and encoded byte array. |
GetEncodedResource | Retrieves the next encoded resource in the encoder. |
Reset | Releases all currently encoded values. |
In order to save a bitmap into a .RES file, it must be converted to an array of bytes so it can be written to the file.
Each time a bitmap is encoded, the array of bytes is stored internally for future retrieval. Multiple bitmaps can be encoded, each encoded bitmap will be stored with a ResourceKey for future retrieval.