Public Member Functions |
| Image (string filename) |
| Image constructor (from filename)
|
| Image (byte[] fileImage) |
| Image constructor (from the file image)
|
| Image (ImageMode mode, ImageSize size, ImageColor color) |
| Image constructor (from the image mode, size, and color)
|
| Image (ImageMode mode, ImageSize size, byte[] buffer) |
| Image constructor (from the image mode, size, and buffer)
|
virtual Object | ShallowClone () |
| Copies Image object.
|
void | Dispose () |
| Frees unmanaged resources of Image.
|
void | Decode () |
| Decodes image.
|
byte[] | ToBuffer () |
| Obtains the memory image of the image.
|
void | ReadBuffer (byte[] buffer) |
| Reads the memory image of the image in the provided buffer.
|
Image | Resize (ImageSize size) |
| Creates a new image object after scaling.
|
Image | Crop (ImageRect rect) |
| Creates a new Image object by cutting out a part of an already-existing image.
|
void | DrawImage (Image source, ImagePosition position) |
| Pastes a different image within the image.
|
void | DrawRectangle (ImageColor color, ImageRect rect) |
| Renders a single-colored rectangle within the image.
|
void | DrawText (string text, ImageColor color, Font font, ImagePosition position) |
| Renders text within the image (all of the character string)
|
void | DrawText (string text, int offset, int len, ImageColor color, Font font, ImagePosition position) |
| Renders text within the image (part of the character string)
|
void | Export (string albumname, string filename) |
| Saves the image with the specified filename.
|
void | SaveAs (string path) |
| Saves the image in the specified file path.
|
Protected Member Functions |
| Image (Image image) |
| Image constructor (copied from another Image object)
|
Properties |
ImageSize | Size [get] |
| Image size.
|
ImageSize | DecodeSize [set] |
| Image size upon decoding.
|
Image constructor (from filename)
- Parameters:
-
The image is not actually decoded immediately after Image is created from an image file. To decode the image, Decode() must be called. However, even if the image has not been decoded, it is still possible to obtain Size, for example. The currently supported image file formats are PNG, BMP, JPG, and GIF.
Image |
( |
byte[] |
fileImage | ) |
|
Image constructor (from the file image)
- Parameters:
-
fileImage | Image file image |
The image is not actually decoded immediately after Image is created from an image file. To decode the image, Decode() must be called. However, even if the image has not been decoded, it is still possible to obtain Size, for example. The currently supported image file formats are PNG, BMP, JPG, and GIF.
void Export |
( |
string |
albumname, |
|
|
string |
filename |
|
) |
| |
Saves the image with the specified filename.
- Parameters:
-
albumname | Output album name |
filename | Output filename |
Arguments cannot use characters other than A-Za-z0-9!#$%&'()+,-.;=@[]^_`{}. In addition, 64 or more characters cannot be used. The currently valid image file formats for save targets are PNG, JPG, and BMP. To the argument "filename", filename including the extension of the image format that you want to save needs to be specified. When executing with Windows Simulator, it is saved in the "My Pictures" folder.
void SaveAs |
( |
string |
path | ) |
|
Saves the image in the specified file path.
- Parameters:
-
Arguments cannot use characters other than / and A-Za-z0-9!#$%&'()+,-.;=@[]^_`{}. The currently valid image file formats for save targets are PNG, JPG, and BMP. To the argument "path", filename including the extension of the image format that you want to save needs to be specified.