Property | Type | Description | |
---|---|---|---|
m_Aperture | float | ||
m_Bitmap | ].float4[ | ||
m_ColorProfile | |||
m_FocalLength | float | ||
m_Height | int | ||
m_ISOSpeed | float | ||
m_ShutterSpeed | float | ||
m_Type | FILE_TYPE | ||
m_Width | int | ||
m_bHasAlpha | bool | ||
m_bHasValidShotInfo | bool | ||
ms_ConvertContent2XYZ | bool | ||
ms_ReadContent | bool |
Method | Description | |
---|---|---|
BilinearSample ( float X, float Y ) : |
Performs bilinear sampling of the XYZ content
|
|
Bitmap ( System _ImageFileName ) : System |
Creates a bitmap from a file
|
|
Bitmap ( System _ImageFileName, |
Creates a bitmap from a file
|
|
Bitmap ( System _ImageStream, FILE_TYPE _FileType ) : System |
Creates a bitmap from a stream
|
|
Bitmap ( System _ImageStream, FILE_TYPE _FileType, |
Creates a bitmap from a stream
|
|
Bitmap ( System _ImageStream, System _ImageFileNameName ) : System |
Creates a bitmap from a stream
|
|
Bitmap ( System _ImageStream, System _ImageFileNameName, |
Creates a bitmap from a stream
|
|
Bitmap ( byte _ImageFileContent, FILE_TYPE _FileType ) : System |
Creates a bitmap from memory
|
|
Bitmap ( byte _ImageFileContent, FILE_TYPE _FileType, |
Creates a bitmap from memory
|
|
Bitmap ( byte _ImageFileContent, System _ImageFileNameName ) : System |
Creates a bitmap from memory
|
|
Bitmap ( byte _ImageFileContent, System _ImageFileNameName, |
Creates a bitmap from memory
|
|
Bitmap ( int _Width, int _Height, |
Manual creation
|
|
DecodeRGBEImage ( |
Decodes a RGBE formatted image into a plain floating-point image
|
|
DecodeRGBEImage ( |
Decodes a RGBE formatted image into a plain floating-point image
|
|
Dispose ( ) : void | ||
GetFileType ( System _ImageFileNameName ) : FILE_TYPE |
Retrieves the image file type based on the image file name
|
|
Load ( System _ImageFileName, FILE_TYPE _FileType ) : void |
Loads from disk
|
|
Load ( System _ImageFileName, FILE_TYPE _FileType, |
||
Load ( byte _ImageFileContent, FILE_TYPE _FileType ) : void |
Actual load from a byte[] in memory
|
|
Load ( byte _ImageFileContent, FILE_TYPE _FileType, |
||
LoadAndDecodeHDRFormat ( byte _HDRFormatBinary, bool _bTargetNeedsXYZ, |
Loads a bitmap in .HDR format into a float4 array directly useable by the image constructor
|
|
LoadBitmap ( System _Bitmap, int &_Width, int &_Height ) : byte[] |
Loads a System.Drawing.Bitmap into a byte[] containing RGBARGBARG... pixels
|
|
LoadHDRFormat ( byte _HDRFormatBinary, |
Loads a bitmap in .HDR format into a RGBE array
|
|
Save ( System _FileName ) : void |
Save to a file
|
|
Save ( System _Stream, FILE_TYPE _FileType, FORMAT_FLAGS _Parms, FormatEncoderOptions _Options ) : void |
Save to a stream
|
|
Save ( System _FileName, FORMAT_FLAGS _Parms ) : void | ||
Save ( System _FileName, FORMAT_FLAGS _Parms, FormatEncoderOptions _Options ) : void |
Method | Description | |
---|---|---|
ConvertFrame ( System _Format ) : System.Windows.Media.Imaging.BitmapFrame |
Converts the generic XYZ+A bitmap to the specified format frame
|
|
ConvertFrame ( System.Windows.Media.Imaging.BitmapSource _Frame ) : void |
Converts the source bitmap to a generic RGBA32F format I cannot use the FormatConvertedBitmap class because it applies some unwanted gamma correction depending on the source pixel format. For example, if the image is using the Bgr24 format that uses a 1/2.2 gamma internally, converting that to our generic format Rgba128Float (that uses a gamma of 1 internally) will automatically apply a pow( 2.2 ) to the RGB values, which is NOT what we're looking for since we're handling gamma correction ourselves here ! |
|
FLOAT_TO_BYTE ( float v ) : byte | ||
FLOAT_TO_WORD ( float v ) : |
||
RadianceFileFindInHeader ( List |
public BilinearSample ( float X, float Y ) : |
||
X | float | A column index in [0,Width[ (will be clamped if out of range) |
Y | float | A row index in [0,Height[ (will be clamped if out of range) |
return |
public Bitmap ( System _ImageFileName ) : System | ||
_ImageFileName | System | |
return | System |
public Bitmap ( System _ImageFileName, |
||
_ImageFileName | System | |
_ProfileOverride | ||
return | System |
public Bitmap ( System _ImageStream, FILE_TYPE _FileType ) : System | ||
_ImageStream | System | The image stream to load the bitmap from |
_FileType | FILE_TYPE | The image type |
return | System |
public Bitmap ( System _ImageStream, FILE_TYPE _FileType, |
||
_ImageStream | System | The image stream to load the bitmap from |
_FileType | FILE_TYPE | The image type |
_ProfileOverride | ||
return | System |
public Bitmap ( System _ImageStream, System _ImageFileNameName ) : System | ||
_ImageStream | System | The image stream to load the bitmap from |
_ImageFileNameName | System | The name of the image file the stream is coming from originally (used to identify image file type) |
return | System |
public Bitmap ( System _ImageStream, System _ImageFileNameName, |
||
_ImageStream | System | The image stream to load the bitmap from |
_ImageFileNameName | System | The name of the image file the stream is coming from originally (used to identify image file type) |
_ProfileOverride | ||
return | System |
public Bitmap ( byte _ImageFileContent, FILE_TYPE _FileType ) : System | ||
_ImageFileContent | byte | The memory buffer to load the bitmap from |
_FileType | FILE_TYPE | The image type |
return | System |
public Bitmap ( byte _ImageFileContent, FILE_TYPE _FileType, |
||
_ImageFileContent | byte | The memory buffer to load the bitmap from |
_FileType | FILE_TYPE | The image type |
_ProfileOverride | ||
return | System |
public Bitmap ( byte _ImageFileContent, System _ImageFileNameName ) : System | ||
_ImageFileContent | byte | The memory buffer to load the bitmap from |
_ImageFileNameName | System | The name of the image file the stream is coming from originally (used to identify image file type) |
return | System |
public Bitmap ( byte _ImageFileContent, System _ImageFileNameName, |
||
_ImageFileContent | byte | The memory buffer to load the bitmap from |
_ImageFileNameName | System | The name of the image file the stream is coming from originally (used to identify image file type) |
_ProfileOverride | ||
return | System |
public Bitmap ( int _Width, int _Height, |
||
_Width | int | |
_Height | int | |
_Profile | An optional color profile, you will need a valid profile if you wish to save the bitmap! | |
return | System |
protected ConvertFrame ( System _Format ) : System.Windows.Media.Imaging.BitmapFrame | ||
_Format | System | The format to convert into |
return | System.Windows.Media.Imaging.BitmapFrame |
protected ConvertFrame ( System.Windows.Media.Imaging.BitmapSource _Frame ) : void | ||
_Frame | System.Windows.Media.Imaging.BitmapSource | The source frame to convert |
return | void |
public static DecodeRGBEImage ( |
||
_Source | The source RGBE formatted image | |
_bSourceIsXYZ | bool | Tells if the source image is encoded as XYZE rather than RGBE |
_bTargetNeedsXYZ | bool | Tells if the target needs to be in CIE XYZ space (true) or RGB (false) |
_ColorProfile | The color profile for the image | |
return | ].float4[ |
public static DecodeRGBEImage ( |
||
_Source | The source RGBE formatted image | |
_bSourceIsXYZ | bool | Tells if the source image is encoded as XYZE rather than RGBE |
_Target | The target float4 image | |
_bTargetNeedsXYZ | bool | Tells if the target needs to be in CIE XYZ space (true) or RGB (false) |
_ColorProfile | The color profile for the image | |
return | void |
protected FLOAT_TO_WORD ( float v ) : |
||
v | float | |
return |
public static GetFileType ( System _ImageFileNameName ) : FILE_TYPE | ||
_ImageFileNameName | System | The image file name |
return | FILE_TYPE |
public Load ( System _ImageFileName, FILE_TYPE _FileType ) : void | ||
_ImageFileName | System | |
_FileType | FILE_TYPE | |
return | void |
public Load ( System _ImageFileName, FILE_TYPE _FileType, |
||
_ImageFileName | System | |
_FileType | FILE_TYPE | |
_ProfileOverride | ||
return | void |
public Load ( byte _ImageFileContent, FILE_TYPE _FileType ) : void | ||
_ImageFileContent | byte | The source image content as a byte[] |
_FileType | FILE_TYPE | The type of file to load |
return | void |
public Load ( byte _ImageFileContent, FILE_TYPE _FileType, |
||
_ImageFileContent | byte | |
_FileType | FILE_TYPE | |
_ProfileOverride | ||
return | void |
public static LoadAndDecodeHDRFormat ( byte _HDRFormatBinary, bool _bTargetNeedsXYZ, |
||
_HDRFormatBinary | byte | |
_bTargetNeedsXYZ | bool | Tells if the target needs to be in CIE XYZ space (true) or RGB (false) |
_ProfileOverride | ||
_ColorProfile | The color profile for the image | |
return | ].float4[ |
public static LoadBitmap ( System _Bitmap, int &_Width, int &_Height ) : byte[] | ||
_Bitmap | System | The source System.Drawing.Bitmap to load |
_Width | int | The bitmap's width |
_Height | int | The bitmaps's height |
return | byte[] |
public static LoadHDRFormat ( byte _HDRFormatBinary, |
||
_HDRFormatBinary | byte | |
_ProfileOverride | ||
_bIsXYZ | bool | Tells if the image is encoded as XYZE rather than RGBE |
_ColorProfile | The color profile for the image | |
return | ].PF_RGBE[ |
protected static RadianceFileFindInHeader ( List |
||
_HeaderLines | List |
|
_Search | string | |
return | string |
public Save ( System _Stream, FILE_TYPE _FileType, FORMAT_FLAGS _Parms, FormatEncoderOptions _Options ) : void | ||
_Stream | System | The stream to write the image to |
_FileType | FILE_TYPE | The file type to save as |
_Parms | FORMAT_FLAGS | Additional formatting flags |
_Options | FormatEncoderOptions | An optional block of options for encoding |
return | void |
public Save ( System _FileName, FORMAT_FLAGS _Parms ) : void | ||
_FileName | System | |
_Parms | FORMAT_FLAGS | |
return | void |
public Save ( System _FileName, FORMAT_FLAGS _Parms, FormatEncoderOptions _Options ) : void | ||
_FileName | System | |
_Parms | FORMAT_FLAGS | |
_Options | FormatEncoderOptions | |
return | void |
protected ColorProfile,ImageUtility m_ColorProfile | ||
return |
protected static bool ms_ConvertContent2XYZ | ||
return | bool |