Raytrix Light Field SDK  5.0
Rx::Net::Codec::ImageFile Class Reference

Detailed Description

An image file.

Public Member Functions

 ImageFile ()
 Default constructor. More...
 
void Save (Rx::Net::Image^ xImage, System::String^ sFilename)
 Saves the given image under the given file name. The extension of the file name describes the used codec. Possible extensions are .bmp, .tiff, .jpg, .png. More...
 

Static Public Member Functions

static Rx::Net::ImageLoad (System::String^ sFilename)
 Loads the image described by the given file name. More...
 

Properties

array< double >^ Cropping
 The cropping used for saving images. More...
 
int JpegQuality
 The quality used for saving JPEG images. The range is 0 - 100 where 100 is the best quality. More...
 

Constructor & Destructor Documentation

◆ ImageFile()

Rx::Net::Codec::ImageFile::ImageFile ( )

Default constructor.

Member Function Documentation

◆ Load()

static Rx::Net::Image ^ Rx::Net::Codec::ImageFile::Load ( System::String^  sFilename)
static

Loads the image described by the given file name.

Parameters
sFilename[in] The filename to load.
Returns
Null if it fails, else the loaded image.

◆ Save()

void Rx::Net::Codec::ImageFile::Save ( Rx::Net::Image xImage,
System::String^  sFilename 
)

Saves the given image under the given file name. The extension of the file name describes the used codec. Possible extensions are .bmp, .tiff, .jpg, .png.

Parameters
xImage[in] The image to save.
sFilename[in] The file name of the saved image.

Property Documentation

◆ Cropping

array< double>^ Rx::Net::Codec::ImageFile::Cropping

The cropping used for saving images.

The cropping array must be null or must contain 4 double values. The first value defines the left border, the second value the right border, the third value the top border and the fourth value the bottom border. The values must be given between 0.0 and 1.0 and are the percentages of the image dimensions.

◆ JpegQuality

int Rx::Net::Codec::ImageFile::JpegQuality

The quality used for saving JPEG images. The range is 0 - 100 where 100 is the best quality.