Image class.
This .NET image class is a container for holding a pointer pointing to image byte data. This class implements System::Xml::Serialization::IXmlSerializable interface and is therewith serializable to XML.
Inherits Rx::InteropNet::Runtime28::IImage, and IXmlSerializable.
Public Member Functions | |
Image () | |
Default constructor. More... | |
Image (System::Int32 iWidth, System::Int32 iHeight, InteropNet::Runtime28::EPixelType ePixelType, InteropNet::Runtime28::EDataType eDataType) | |
Constructor. More... | |
!Image () | |
Finalizer. More... | |
~Image () | |
Destructor. More... | |
Image^ | ConvertType (InteropNet::Runtime28::EPixelType ePixelType, InteropNet::Runtime28::EDataType eDataType) |
bool | Create (int iWidth, int iHeight, EPixelType ePixelType, EDataType eDataType) |
Prepares memory. More... | |
virtual bool | Create (System::Int32 iWidth, System::Int32 iHeight, Rx::InteropNet::Runtime28::EPixelType ePixelType, Rx::InteropNet::Runtime28::EDataType eDataType) |
Creates a new image and allocates memory necessary for given parameters. More... | |
virtual bool | Create (Rx::Net::ImageFormat^ xFormat) |
Creates a new image and allocates memory necessary for given parameters. More... | |
virtual bool | Destroy () |
Destroys this image and frees all memory used. More... | |
virtual System::Int32 | GetByteCount () |
Get the number of bytes of the whole image. More... | |
virtual System::Int32 | GetBytesPerPixel () |
Gets the bytes per pixel. More... | |
virtual void * | GetDataPtr () |
Gets the data pointer. More... | |
virtual CRxImage * | GetNativeImage () |
Gets the native CRxImage pointer More... | |
virtual System::Int32 | GetPixelCount () |
Get the number of pixels. More... | |
virtual System::Xml::Schema::XmlSchema^ | GetSchema () |
Gets the schema. More... | |
virtual void | GetSize (System::Int32^ %iWidth, System::Int32^ %iHeight) |
Get width and height of image. More... | |
virtual void | GetType (Rx::InteropNet::Runtime28::EPixelType% ePixelType, Rx::InteropNet::Runtime28::EDataType% eDataType) |
Get pixel and data type of image. More... | |
bool | IsOfType (Rx::InteropNet::Runtime28::EPixelType ePixelType, Rx::InteropNet::Runtime28::EDataType eDataType) |
Test whether image is of a particular pixel and data type. More... | |
bool | Normalize () |
Find minimal and maximal value of image and normalize image to range [0,1]. More... | |
virtual System::Void | ReadXml (System::Xml::XmlReader^ xmlReader) |
Generates an image from its XML representation. More... | |
void | SetZero () |
virtual System::Void | WriteXml (System::Xml::XmlWriter^ xmlWriter) |
Converts this image into its XML representation. More... | |
Properties | |
Rx::InteropNet::Runtime28::EDataType | DataType [get] |
Gets the type of the data. More... | |
Rx::Net::ImageFormat^ | Format [get] |
Gets the format of this image. More... | |
System::Int32 | Height [get] |
Gets the height of this image in pixels. More... | |
System::Boolean | IsValid [get] |
Flags whether this image is valid or not. More... | |
Rx::InteropNet::Runtime28::EPixelType | PixelType [get] |
Gets the type of the pixel. More... | |
System::Int32 | Width [get] |
Gets the width of this image in pixels. More... | |
Rx::Net::Image::Image | ( | ) |
Default constructor.
Rx::Net::Image::Image | ( | System::Int32 | iWidth, |
System::Int32 | iHeight, | ||
InteropNet::Runtime28::EPixelType | ePixelType, | ||
InteropNet::Runtime28::EDataType | eDataType | ||
) |
Constructor.
iWidth | Zero-based index of the width. |
iHeight | Zero-based index of the height. |
ePixelType | Type of the pixel. |
eDataType | Type of the data. |
Rx::Net::Image::~Image | ( | ) |
Destructor.
Rx::Net::Image::!Image | ( | ) |
Finalizer.
Image ^ Rx::Net::Image::ConvertType | ( | InteropNet::Runtime28::EPixelType | ePixelType, |
InteropNet::Runtime28::EDataType | eDataType | ||
) |
|
inherited |
Prepares memory.
iWidth | The width. |
iHeight | The height. |
ePixelType | Identifier for the image type. |
eDataType | Identifier for the data type. |
|
virtual |
Creates a new image and allocates memory necessary for given parameters.
If an image has been created before, the old image and all used memory is freed before creating the new image.
iWidth | Zero-based index of the width. |
iHeight | Zero-based index of the height. |
ePixelType | Type of the image. |
eDataType | Type of the data. |
|
virtual |
Creates a new image and allocates memory necessary for given parameters.
If an image has been created before, the old image and all used memory is freed before creating the new image.
xFormat | [in,out] If non-null, describes the format to use. |
|
virtual |
Destroys this image and frees all memory used.
Implements Rx::InteropNet::Runtime28::IImage.
|
inlinevirtual |
Get the number of bytes of the whole image.
|
virtual |
|
virtual |
Gets the data pointer.
Implements Rx::InteropNet::Runtime28::IImage.
|
virtual |
Gets the native CRxImage pointer
|
inlinevirtual |
Get the number of pixels.
|
virtual |
Gets the schema.
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
|
inlinevirtual |
Get width and height of image.
|
inlinevirtual |
Get pixel and data type of image.
|
inline |
Test whether image is of a particular pixel and data type.
|
inline |
Find minimal and maximal value of image and normalize image to range [0,1].
TPixel_L_f
.
|
virtual |
Generates an image from its XML representation.
xmlReader | [in,out] If non-null, the XML reader. |
|
inline |
|
virtual |
Converts this image into its XML representation.
xmlWriter | [in] The writer. |
|
get |
Gets the type of the data.
|
get |
Gets the format of this image.
|
get |
Gets the height of this image in pixels.
|
get |
Flags whether this image is valid or not.
An image is valid if memory has been allocated.
|
get |
Gets the type of the pixel.
|
get |
Gets the width of this image in pixels.