![]() |
Public API Reference |
![]() |
Small wrapper class to automatically convert an image into a different storage format, if needed. More...
#include <csgfx/imageautoconvert.h>
Public Member Functions | |
ImageAutoConvert (iImage *image, int desiredFormat) | |
Provide access to image itself or a copy in with a format of desiredFormat. | |
operator iImage * () const | |
Provide access to the image. | |
iImage * | operator-> () const |
Provide access to the image. |
Small wrapper class to automatically convert an image into a different storage format, if needed.
Definition at line 39 of file imageautoconvert.h.
CS::ImageAutoConvert::ImageAutoConvert | ( | iImage * | image, |
int | desiredFormat | ||
) | [inline] |
Provide access to image itself or a copy in with a format of desiredFormat.
image | Image to wrap. |
desiredFormat | The desired image format. If image has the correct format it's used directly; otherwise, a copy having the given format will be created. |
Definition at line 51 of file imageautoconvert.h.
CS::ImageAutoConvert::operator iImage * | ( | ) | const [inline] |
Provide access to the image.
Definition at line 64 of file imageautoconvert.h.
iImage* CS::ImageAutoConvert::operator-> | ( | ) | const [inline] |
Provide access to the image.
Definition at line 62 of file imageautoconvert.h.