Pixmap Class Reference
[ECMAScript/QtScript - Native Objects]

Qt Pixmap type. More...

Inheritance diagram for Pixmap:

Object List of all members.

Properties

Number depth
Number height
Rect rect
Size size
Number width

Methods

void fill (Color color)
Boolean isNull ()
void load (String filename)
void resize (Number width, Number height)
void resize (Size size)
void save (String filename)

Constructors

 Pixmap (Pixmap pixmap)
 Pixmap (String filename)
 Pixmap ()

Detailed Description

Qt Pixmap type.

This is the DAZ Script counterpart of the QPixmap type used in the DAZ Studio SDK.


Constructor & Destructor Documentation

Pixmap::Pixmap (  ) 

Default Constructor.

Pixmap::Pixmap ( String  filename  ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
filename The name of the file to load the pixmap's data from

Pixmap::Pixmap ( Pixmap  pixmap  ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
pixmap The pixmap to copy


Member Function Documentation

void Pixmap::fill ( Color  color  ) 

Fills the pixmap with color

Parameters:
color The color to set all the pixels in the pixmap.

Boolean Pixmap::isNull (  ) 

Gets whether or not the pixmap is Null.

Returns:
true if this is a Null (empty) pixmap, false if the pixmap has data.

void Pixmap::load ( String  filename  ) 

Loads data into the pixmap from a file

Parameters:
filename The name of the file to load into the pixmap

void Pixmap::resize ( Number  width,
Number  height 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Resizes the pixmap

Parameters:
width The new width for the pixmap
height The new height for the pixmap

void Pixmap::resize ( Size  size  ) 

Resizes the pixmap.

Parameters:
size The new size for the pixmap

void Pixmap::save ( String  filename  ) 

Saves the pixmap to a file

Parameters:
filename The name of the file to save the pixmap to.


Member Data Documentation

Number Pixmap::depth

The color depth of the pixmap (Read-Only)

Number Pixmap::height

The height of the pixmap in pixels (Read-Only)

Rect Pixmap::rect

The enclosing rectangle of the pixmap in pixels (Read-Only)

Size Pixmap::size

The size of the pixmap (Read-Only)

Number Pixmap::width

The width of the pixmap in pixels (Read-Only)


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.