mi::neuraylib::ICanvas_base Class Reference
[Mi_neuray_mdl_sdk_misc]
Description
Abstract interface for a canvas (base class). This interface is the base class for all canvases. It holds the common functionality of all different canvas interfaces, i.e., the resolution of the canvas.
See also:
Public Member Functions
- virtual Float32 get_gamma() const =0
- Returns the gamma value. More...
- virtual Uint32 get_layers_size() const =0
- Returns the number of layers this canvas has.
- virtual Uint32 get_resolution_x() const =0
- Returns the resolution of the canvas in x direction.
- virtual Uint32 get_resolution_y() const =0
- Returns the resolution of the canvas in y direction.
- virtual const char* get_type() const =0
- Returns the pixel type used by the canvas. More...
- virtual void set_gamma( Float32 gamma) =0
- Sets the gamma value. More...
Member Functions
- virtual Float32 mi::neuraylib::ICanvas_base::get_gamma() const [pure virtual]
-
Returns the gamma value. The gamma value should be a positive number. Typical values are 2.2 for LDR pixel types, and 1.0 for HDR pixel types.
The alpha channel (if present) is always linear.
- virtual Uint32 mi::neuraylib::ICanvas_base::get_layers_size() const [pure virtual]
-
Returns the number of layers this canvas has.
- virtual Uint32 mi::neuraylib::ICanvas_base::get_resolution_x() const [pure virtual]
-
Returns the resolution of the canvas in x direction.
- virtual Uint32 mi::neuraylib::ICanvas_base::get_resolution_y() const [pure virtual]
-
Returns the resolution of the canvas in y direction.
- virtual const char* mi::neuraylib::ICanvas_base::get_type() const [pure virtual]
- virtual void mi::neuraylib::ICanvas_base::set_gamma( Float32 gamma) [pure virtual]
-
Sets the gamma value. The alpha channel (if present) is always linear.
Note:This method just sets the gamma value. It does not change the pixel data itself.