Objective Toolkit : Chapter 9 Image Classes : Key Image Methods
Key Image Methods
Here is an overview of some of the key SECImage methods.
Table 28 – Methods for SECImage 
SECImage method
Description
LoadImage()
Loads an image from file. To load a GIF, use SECGif; to load a TIFF, use SECTiff.
SaveImage()
Saves an image to file. The format of the image is based on the type of the object through which SaveImage is called. For example, SECGif::SaveImage writes the GIF format.
CopyImage()
Creates a copy of an image.
ConvertImage()
Converts one image to another type. The conversion actually takes place during writing or reading of the image because SECImage uses a standard internal format for all image types. ConvertImage() copies the internal image and deletes the original without the overhead of actually copying the data.
FlipHorz()
Flips an image horizontally.
FlipVert()
Flips an image vertically.
Rotate90()
Rotates an image 90 degrees counter-clockwise.
ContrastImage()
Sharpens or dulls an image.
NumColors()
Returns the number of colors used by the image.