![]() |
pCon.planner Plugin SDK
Version 8.8.1
|
Holds an image. More...
Public Member Functions | |
Image (int pWidth, int pHeight, PixelFormat pFormat, array< unsigned char >^pData) | |
Constructor for class Image with custom image data. More... | |
virtual bool | Equals (System::Object^ pOther) override |
Returns only true if the given Object is of Image type and delivers the same hash. More... | |
virtual int | GetHashCode () override |
Returns the 32 bit hash of the image. More... | |
System::Int64 | GetHashCode64 () |
Returns the 64 bit hash of the image. More... | |
bool | IsTransparent () |
Returns true if the image has transparent pixels. More... | |
Image^ | Resize (int pWidth, int pHeight) |
Returns resized version of image. More... | |
void | ToStream (System::IO::Stream^ pStream, ImageFormat pFormat) |
Writes the image to stream. More... | |
Bitmap^ | ToBitmap () |
Converts image to a GDI+ bitmap. More... | |
array< unsigned char >^ | GetData () |
Returns copy of uncompressed image data. More... | |
GeVec4f | Sample4f (float u, float v, bool pBilinear) |
Allows image resampling with bilinear interpolation. More... | |
IntPtr | GetDataPtr () |
Returns pointer to uncompressed image data. More... | |
Static Public Member Functions | |
static Image^ | LoadFromFile (String^ pFileName) |
Loads image from file. More... | |
static Image^ | LoadFromStream (System::IO::Stream^ pStream) |
Loads image from stream. More... | |
Properties | |
String^ | FileName [get] |
Returns the source filename of the image. More... | |
int | Width [get] |
Width of the image in pixels. More... | |
int | Height [get] |
Height of the image in pixels. More... | |
PixelFormat | Format [get] |
Pixel format of the image. More... | |
int | BitsPerPixel [get] |
Number of bits per pixel. More... | |
Holds an image.
X3g::Plugin::Image::Image | ( | int | pWidth, |
int | pHeight, | ||
PixelFormat | pFormat, | ||
array< unsigned char >^ | pData | ||
) |
Constructor for class Image with custom image data.
pWidth | The width of the image. Expects a value greater then 0. |
pHeight | The height of the image. Expects a value greater then 0. |
pFormat | The pixel format. See PixelFormat for the bit width. |
pData | The desired image data. The size of this array has to be: width * height * (bit_width / 8) |
|
overridevirtual |
Returns only true if the given Object is of Image type and delivers the same hash.
Otherwise the result is false.
array< unsigned char > X3g::Plugin::Image::GetData | ( | ) |
Returns copy of uncompressed image data.
IntPtr X3g::Plugin::Image::GetDataPtr | ( | ) |
Returns pointer to uncompressed image data.
|
overridevirtual |
Returns the 32 bit hash of the image.
System::Int64 X3g::Plugin::Image::GetHashCode64 | ( | ) |
Returns the 64 bit hash of the image.
bool X3g::Plugin::Image::IsTransparent | ( | ) |
Returns true if the image has transparent pixels.
Loads image from file.
Returns null if image couldn't be loaded.
|
static |
Loads image from stream.
Returns null if image couldn't be loaded. Image format is detected automatically.
Image X3g::Plugin::Image::Resize | ( | int | pWidth, |
int | pHeight | ||
) |
Returns resized version of image.
GeVec4f X3g::Plugin::Image::Sample4f | ( | float | u, |
float | v, | ||
bool | pBilinear | ||
) |
Allows image resampling with bilinear interpolation.
Bitmap X3g::Plugin::Image::ToBitmap | ( | ) |
Converts image to a GDI+ bitmap.
void X3g::Plugin::Image::ToStream | ( | System::IO::Stream^ | pStream, |
ImageFormat | pFormat | ||
) |
Writes the image to stream.
|
get |
Number of bits per pixel.
|
get |
Returns the source filename of the image.
|
get |
Pixel format of the image.
|
get |
Height of the image in pixels.
|
get |
Width of the image in pixels.