|
Houdini Development Toolkit - Version 6.5
Side Effects Software Inc. 2004
|
Utility Classes
IMG_Raster Methods
The IMG_Raster class encapsulates a 2D image (raster). The class
provides a set of methods for creating and manipulating a single raster. Methods
are also provided for composite operators that operate using two rasters.
Raster Description
A raster is a 2D image made of a matrix of pixel values.
Each pixel contains four channels of information:
red, green, blue and alpha (RGBA). Pixels are contained in classes called
UT_RGBA or UT_BIG_RGBA.
IMG_Raster can hold a raster at one of two depths:
8 bit or 16 bit.
An 8 bit
raster provides 8 bits of information for each channel of information
(i.e. red, green, blue and alpha).
Therefore an 8 bit raster use 32 bits per
pixel (UT_RGBA) and a 16 bit raster (UT_BIG_RGBA) use 64 bits per pixel.
Each channel (RGBA) of a raster is quantified by a number from 0 to some
maximum (either 255 for 8 bit rasters or 65535 for 16 bit rasters).
These channel maximums are defined in the constants CHANNEL_MAX and BIG_CHANNEL_MAX.
The UT_HSVA class assists in manipulating RGBA pixels in a hue, saturation and
value space. However, IMG_Raster does not directly store images
using HSVA.
Constructing a Raster
Sizing or Resizing a Raster
Finding the Size of the Raster
Accessing the Raster
Filter Operations
Loading and Saving Images
Table of Contents
Operators |
Surface Operations |
Particle Operations |
Composite Operators |
Channel Operators
Material & Texture |
Objects |
Command and Expression |
Render Output |
Mantra Shaders |
Utility Classes |
Geometry Library |
Image Library |
Clip Library
Customizing UI |
Questions & Answers
Copyright © 2004 Side Effects Software Inc.
477 Richmond Street West, Toronto, Ontario, Canada M5V 3E7