Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RtRAS
[Image Conversion Tools]


Functions

RwImage RtRASImageRead (const RwChar *imageName)
RwImage RtRASImageWrite (RwImage *image, const RwChar *imageName)

Detailed Description

RAS/Sun Raster File Format Image Format Toolkit for RenderWare.

See also http://www.sworks.com/hollasch/cgindex/formats/sunraster.html

RtRAS Toolkit Overview

Requirements

Overview

The RtRAS toolkit provides reading and writing functions for the RAS image format.

Sun Raster is the native bitmap format of the Sun UNIX platforms. A simple bitmap format with wide distribution, particularly in the UNIX world.

Supports paletted, 32 bit BGR and RGB color, and grayscale images. This format does not support alpha channels.

Copyright (c) Criterion Software Limited


Function Documentation

RwImage* RtRASImageRead const RwChar   imageName
 

RtRASImageRead is used to read a Sun Raster format from disk. The filename can either be absolute or relative to the directory the application is running from. The image search path is not used to find image files and no gamma correction is applied to the image as it is read.

Parameters:
imageName  Pointer to the filename of the RAS file to read.
Returns:
Returns an image on success, or NULL on failure.
See also:
RtRASImageWrite , RwImageRead , RwImageWrite , RwImageRegisterImageFormat
RwImage* RtRASImageWrite RwImage   image,
const RwChar   imageName
 

RtRASImageWrite is used to write an image as a RAS file.

The image file name can either be absolute or relative to the directory the application is running from.

Note that if the image has been gamma corrected using RwImageGammaCorrect, the gamma correction is removed from the image before writing it to disk. Inverse gamma correction is performed using the current gamma correction value.

Parameters:
image  Pointer to the image to write.
imageName  Pointer to the filename of the RAS file to read.
Returns:
Returns an image on success, or NULL on failure.
See also:
RtRASImageRead , RwImageRead , RwImageWrite , RwImageRegisterImageFormat

Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:47:00 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)