Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Port class. More...
#include <ilviews/base/port.h>
Public Member Functions | |
IlvSystemPort (IlvDisplay *display, IlvWindowsHandle HDC, IlvDim width=0, IlvDim height=0) | |
Windows-specific constructor. | |
virtual void | clearArea (const IlvRegion &, IlBoolean=((IlBoolean) 0)) const |
Clears a region of the screen. | |
virtual void | clearArea (const IlvRect &, IlBoolean=((IlBoolean) 0)) const |
Clears a rectangular area of the screen. | |
virtual void | clip (const IlvRegion *) const |
Limits the drawing to the given region. | |
virtual void | clip (const IlvRect *) const |
Limits the drawing to the given rectangular area. | |
virtual IlUShort | depth () const |
Gives the depth of the port. | |
virtual void | drawArc (const IlvPalette *, const IlvRect &, IlFloat, IlFloat) const |
Draws an arc. | |
virtual void | drawBitmap (const IlvPalette *, const IlvBitmap *, const IlvRect &, const IlvRegion *=0, IlvPosition=IlvCenter, IlBoolean=((IlBoolean) 0)) const |
Draws an image. | |
virtual void | drawBitmap (const IlvPalette *, const IlvSystemPort *, const IlvRect &, const IlvPoint &) const |
Draws an image. | |
virtual void | drawIString (const IlvPalette *, const IlvPoint &, const char *, int, IlvPosition=IlvLeft) const |
Draws a string at the given position. | |
virtual void | drawLine (const IlvPalette *, const IlvPoint &, const IlvPoint &) const |
Draws a line between 2 points. | |
virtual void | drawPoint (const IlvPalette *, const IlvPoint &) const |
Draws a point at the given position. | |
virtual void | drawPoints (const IlvPalette *, IlUInt, const IlvPoint *) const |
Draws a series of points. | |
virtual void | drawPolyLine (const IlvPalette *, const IlvPoint &, IlUInt, const IlvDeltaPoint *) const |
Draws a series of connected lines relatively to a reference. | |
virtual void | drawPolyLine (const IlvPalette *, IlUInt, const IlvPoint *) const |
Draws a series of connected lines. | |
virtual void | drawRectangle (const IlvPalette *, const IlvRect &) const |
Draws the given rectangle. | |
virtual void | drawRoundRectangle (const IlvPalette *, const IlvRect &, IlUShort) const |
Draws a round rectangle. | |
virtual void | drawSegments (const IlvPalette *, IlUInt, const IlvPoint *, const IlvPoint *) const |
Draws a set of segments. | |
virtual void | drawString (const IlvPalette *, const IlvPoint &, const char *, int, IlvPosition=IlvLeft) const |
Draws a string at the given position. | |
virtual void | drawTransformedString (const IlvPalette *, const char *, int, const IlvTransformer &, const IlvRegion *=0) const |
Draws a transformed string. | |
virtual void | drawTransparentBitmap (const IlvPalette *, const IlvSystemPort *, const IlvRect &, const IlvPoint &) const |
Draws a transparent bitmap. | |
virtual void | end () |
Closed the dump device. | |
virtual void | fillArc (const IlvPalette *, const IlvRect &, IlFloat, IlFloat) const |
Fills the arc. | |
virtual void | fillPaths (const IlvPalette *, IlUInt, const IlvPointArray *) const |
Fills the shape defined by the given paths. | |
virtual void | fillPolyLine (const IlvPalette *, const IlvPoint &, IlUInt, const IlvDeltaPoint *, IlBoolean=((IlBoolean) 0)) const |
Fills a polygon. | |
virtual void | fillPolyLine (const IlvPalette *, IlUInt, const IlvPoint *, IlBoolean=((IlBoolean) 0)) const |
Fills a polygon. | |
virtual void | fillRectangle (const IlvPalette *, const IlvRect &) const |
Fills the given rectangle. | |
virtual void | fillRoundRectangle (const IlvPalette *, const IlvRect &, IlUShort) const |
Fills a round rectangle. | |
IlvWindowsHandle | getDC () const |
Gets the Windows Handle Device Context. | |
virtual IlBoolean | initDevice (const char *, IlvRect *=0) |
Initializes the dump device. | |
virtual IlBoolean | isABitmap () const |
Indicates that this port is a bitmap (not a view or a dump device). | |
virtual IlBoolean | isASystemPort () const |
Indicates that this port is a true system port (not a dump device). | |
virtual IlBoolean | isBad () const |
Indicates whether this port is valid. | |
virtual IlBoolean | newPage () const |
Produces an output page and prepares for a new page. | |
void | releaseDC () |
Releases the Windows Handle Device Context. | |
virtual void | send (const char *) const |
Sends character strings to an output device. | |
virtual void | setTransformer (const IlvTransformer &) |
Applies another transformer to the coordinates provided for the drawing functions. | |
virtual void | stretchBitmap (const IlvPalette *, const IlvRect &, const IlvBitmap *, const IlvRect *=0) const |
Stretches a bitmap. | |
virtual void | stretchBitmap (const IlvPalette *, const IlvPoint &, const IlvBitmap *, const IlvTransformer &, const IlvRect *=0) const |
Stretches a bitmap. | |
virtual void | stretchBitmapData (const IlvPalette *palette, const IlvBitmapData *src, const IlvRect &from, const IlvRect &to, IlBoolean opaque=((IlBoolean) 0)) const |
Draws a bitmap data. | |
virtual void | stretchTransparentBitmap (const IlvPalette *, const IlvRect &, const IlvBitmap *, const IlvRect *=0) const |
Stretches a transparent bitmap. | |
virtual void | stretchTransparentBitmap (const IlvPalette *, const IlvPoint &, const IlvBitmap *, const IlvTransformer &, const IlvRect *=0) const |
Stretches a transparent bitmap. | |
Static Public Member Functions | |
static IlvBitmapData * | GetBitmapData (IlvSystemPort *port, const IlvRect *rect=0) |
Creates an IlvBitmapData from a rectangular area in an IlvSystemPort . | |
Friends | |
class | IlvDisplay |
Port class.
Library: display
The IlvSystemPort
class defines the area in which you can draw. This area can be a real place or a virtual place. In the first case, the user draws directly into a region of the screen of the workstation. In the second case, the user draws into a bitmap in memory. Classes are derived from IlvSystemPort
to accommodate these two possibilities.
- IlvSystemPort object: A rectangular area -
IlvAbstractView
, IlvBitmap
. IlvSystemPort::IlvSystemPort | ( | IlvDisplay * | display, | |
IlvWindowsHandle | HDC, | |||
IlvDim | width = 0 , |
|||
IlvDim | height = 0 | |||
) |
Windows-specific constructor.
Used to create an IlvSystemPort
object from a Windows HDC (Handle Device Context), which is specified by the second parameter passed to the constructor. The width and height arguments specify the size of the port.
display | The display where this port is created. | |
HDC | The Windows Handle Device Context. | |
width | The width of the port. | |
height | The height of the port. |
virtual void IlvSystemPort::clearArea | ( | const IlvRegion & | region, | |
IlBoolean | reDraw = ((IlBoolean) 0) | |||
) | const [virtual] |
Clears a region of the screen.
Clears a region of the screen specified in region. The destination port cannot be a bitmap, since a bitmap object does not have a color value that defines its background.
region | The region to clear. | |
reDraw | If it has the value IlTrue a message is sent requesting that the area be redrawn. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::clearArea | ( | const IlvRect & | rect, | |
IlBoolean | reDraw = ((IlBoolean) 0) | |||
) | const [virtual] |
Clears a rectangular area of the screen.
Clears the rectangular area of the screen area specified in drawRect. The destination port cannot be a bitmap, since a bitmap object does not have a color value that defines its background.
rect | The rectangular area to clear. | |
reDraw | If it has the value IlTrue a message is sent requesting that the area be redrawn. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::clip | ( | const IlvRegion * | region | ) | const [virtual] |
Limits the drawing to the given region.
Limits the drawing to the region region. This area maps out a temporary clipping area. These settings will be erased when a new clip function is called.
region | The drawing region. |
Implements IlvPort.
Reimplemented in IlvWindowsVirtualDevice.
virtual void IlvSystemPort::clip | ( | const IlvRect * | rect | ) | const [virtual] |
Limits the drawing to the given rectangular area.
Limits the drawing to the rect area. This area maps out a temporary clipping area. These settings will be erased when a new clip function is called.
rect | The drawing rectangle. |
Implements IlvPort.
Reimplemented in IlvWindowsVirtualDevice.
virtual IlUShort IlvSystemPort::depth | ( | ) | const [virtual] |
Gives the depth of the port.
This function returns 1
in a monochrome environment. In a color environment, it returns n
, where the actual number of possible colors is equal to 2
to the power of n
: a depth of 4
means 16 colors, a depth of 8
means 256 colors, and so on.
Reimplemented in IlvBitmap.
virtual void IlvSystemPort::drawArc | ( | const IlvPalette * | palette, | |
const IlvRect & | rect, | |||
IlFloat | start, | |||
IlFloat | range | |||
) | const [virtual] |
Draws an arc.
Draws an arc that is part of an ellipse whose bounding box is the rectangle specified by rect. The arc extends from the angle start to the angle formed by the sum of start and range. These angles are given in degrees and the arc is drawn counterclockwise for positive angles and clockwise for negative angles.
palette | The palette to use for the color of the arc. | |
rect | The bounding box of the ellipse for the arc. | |
start | The start angle in degrees. | |
range | The range in degrees. |
Implements IlvPort.
virtual void IlvSystemPort::drawBitmap | ( | const IlvPalette * | palette, | |
const IlvBitmap * | src, | |||
const IlvRect & | drawRect, | |||
const IlvRegion * | clip = 0 , |
|||
IlvPosition | alignment = IlvCenter , |
|||
IlBoolean | transparent = ((IlBoolean) 0) | |||
) | const [virtual] |
Draws an image.
Draws the image stored in src in the rectangle from, using the alignment position specified in the alignment parameter in relation to from. Copies part of the image maintained by a source port called src to this destination port.
You can specify a transparent bitmap display by setting the transparent parameter to IlTrue
. Note that in this case the bitmap has to be 1-bit deep (that is, a monochrome bitmap) or must have a transparency mask.
palette | The palette to use for the color of the bitmap. | |
src | The source port of the image. | |
drawRect | The size of the transferred image. | |
clip | The destination clip rectangle. | |
alignment | The position of the image in relation to the drawRect parameter. | |
transparent | Specifies whether the bitmap is transparent. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::drawBitmap | ( | const IlvPalette * | palette, | |
const IlvSystemPort * | src, | |||
const IlvRect & | from, | |||
const IlvPoint & | to | |||
) | const [virtual] |
Draws an image.
Draws the image stored in src in the rectangle from. Copies part of the image maintained by a source port called src to this destination port.
palette | The palette to use for the color of the bitmap. | |
src | The source port of the image. | |
from | The portion of src that is transferred. | |
to | The location of the top left corner of the destination. |
Implements IlvPort.
virtual void IlvSystemPort::drawIString | ( | const IlvPalette * | palette, | |
const IlvPoint & | position, | |||
const char * | string, | |||
int | length, | |||
IlvPosition | align = IlvLeft | |||
) | const [virtual] |
Draws a string at the given position.
Similar to drawString
, except that it uses the background color to fill the rectangle that surrounds the string.
palette | The palette used for drawing the string. | |
position | The location where to draw the string. This indicates the y location of the base line, and the x coordinates depends on align. | |
string | The text to draw. | |
length | The length of the string. | |
align | The alignment of the string with respect to position. |
Implements IlvPort.
virtual void IlvSystemPort::drawLine | ( | const IlvPalette * | palette, | |
const IlvPoint & | point1, | |||
const IlvPoint & | point2 | |||
) | const [virtual] |
Draws a line between 2 points.
Draws a line from the point point1 to the point point2.
palette | The palette to use for the color of the line. | |
point1 | The position of the first point. | |
point2 | The position of the second point. |
Implements IlvPort.
virtual void IlvSystemPort::drawPoint | ( | const IlvPalette * | palette, | |
const IlvPoint & | point | |||
) | const [virtual] |
Draws a point at the given position.
Draws a point at the position referred to as point, which is in fact a pixel. This function sets the indicated pixel in the destination port to the foreground color of palette.
palette | The palette to use for the color of the point. | |
point | The position of the point to draw. |
Implements IlvPort.
virtual void IlvSystemPort::drawPoints | ( | const IlvPalette * | palette, | |
IlUInt | count, | |||
const IlvPoint * | points | |||
) | const [virtual] |
Draws a series of points.
Draws a series of points (that is, sets a group of pixels to a given color value). They are stored as an array of count points, whose address is indicated by the pointer points.
palette | The palette to use for the color of the point. | |
count | The number of points to draw. | |
points | The address of the points array. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::drawPolyLine | ( | const IlvPalette * | palette, | |
const IlvPoint & | first, | |||
IlUInt | count, | |||
const IlvDeltaPoint * | others | |||
) | const [virtual] |
Draws a series of connected lines relatively to a reference.
Draws a series of connected lines that starts at the point called first and extends by means of relative positions which are given in the others array of count-1
delta values.
palette | The palette to use for the color of the line. | |
first | The starting point of the polyline. | |
count | The number of points. | |
others | The other points of the polyline. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::drawPolyLine | ( | const IlvPalette * | palette, | |
IlUInt | count, | |||
const IlvPoint * | points | |||
) | const [virtual] |
Draws a series of connected lines.
Draws a series of connected lines between the set of count points referred to as points.
palette | The palette to use for the color of the lines. | |
count | The number of points. | |
points | The array of at least count points that define the polyline shape. |
Implements IlvPort.
virtual void IlvSystemPort::drawRectangle | ( | const IlvPalette * | palette, | |
const IlvRect & | rect | |||
) | const [virtual] |
Draws the given rectangle.
Draws the rectangle specified by rect.
palette | The palette to use for the color of the rectangle. | |
rect | The rectangle to draw. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::drawRoundRectangle | ( | const IlvPalette * | palette, | |
const IlvRect & | rect, | |||
IlUShort | radius | |||
) | const [virtual] |
Draws a round rectangle.
palette | The palette used for drawing. | |
rect | The rectangle that is drawn. | |
radius | The radius of the round rectangle corners. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::drawSegments | ( | const IlvPalette * | palette, | |
IlUInt | count, | |||
const IlvPoint * | from, | |||
const IlvPoint * | to | |||
) | const [virtual] |
Draws a set of segments.
Draws a set of segments whose number is indicated by count. The ith segment starts at the point from[i] and ends at the point to[i].
palette | The palette to use for the color of the segments. | |
count | The number of segments to draw. | |
from | The starting point of the segment. | |
to | The ending point of the segment. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::drawString | ( | const IlvPalette * | palette, | |
const IlvPoint & | position, | |||
const char * | string, | |||
int | length, | |||
IlvPosition | align = IlvLeft | |||
) | const [virtual] |
Draws a string at the given position.
Draws a string at the position referred to as position. The text to be drawn is given in the string parameter and its length is set in the length integer parameter. For this length parameter you can provide a negative number -1
instead of giving the real length. Text length is then computed internally since string is handled as a zero-terminated character array. The align parameter indicates how the string is to be aligned with respect to the position point. For this alignment, the y-coordinate of the position point represents the baseline, and the options are IlvLeft
, IlvRight
, and IlvCenter
.
palette | The palette used for drawing the string. | |
position | The location where to draw the string. This indicates the y location of the base line, and the x coordinates depends on align. | |
string | The text to draw. | |
length | The length of the string. | |
align | The alignment of the string with respect to position. |
Implements IlvPort.
virtual void IlvSystemPort::drawTransformedString | ( | const IlvPalette * | palette, | |
const char * | string, | |||
int | length, | |||
const IlvTransformer & | t, | |||
const IlvRegion * | clip = 0 | |||
) | const [virtual] |
Draws a transformed string.
Similar to drawString
except that the string is drawn using the transformer t. Note that with the X window system, you should use normal fonts and transform the fonts through bitmaps. With Windows and OS/2, you should use true system vectorial fonts such as truetype fonts.
palette | The palette used to draw the string. | |
string | The text to draw. | |
length | The length of the string. | |
t | The transformer to apply to the string. | |
clip | The destination clip area. |
Implements IlvPort.
virtual void IlvSystemPort::drawTransparentBitmap | ( | const IlvPalette * | palette, | |
const IlvSystemPort * | src, | |||
const IlvRect & | from, | |||
const IlvPoint & | to | |||
) | const [virtual] |
Draws a transparent bitmap.
Draws the transparent bitmap in the rectangle. The result is displayed in the system port with the palette palette.
palette | The palette to use for the color of the resulting bitmap. | |
src | The system port. | |
from | The portion of src that is transferred. | |
to | The location of the top left corner of the destination. |
Implements IlvPort.
virtual void IlvSystemPort::end | ( | ) | [virtual] |
Closed the dump device.
Closes the dump device and does all the necessary cleaning.
Implements IlvPort.
Reimplemented in IlvWindowsVirtualDevice, and IlvWindowsDevice.
virtual void IlvSystemPort::fillArc | ( | const IlvPalette * | palette, | |
const IlvRect & | rect, | |||
IlFloat | start, | |||
IlFloat | range | |||
) | const [virtual] |
Fills the arc.
Fills the closed arc that is part of an ellipse whose bounding box is the rectangle specified by rect. The arc extends from the angle start to the angle formed by the sum of start and range. These angles are given in degrees. The actual filled shape depends on how the arc has been closed, either in IlvArcPie
mode or in IlvArcChord
mode.
palette | The palette to use for the fill color of the arc. | |
rect | The bounding box of the ellipse for the arc. | |
start | The start angle in degrees. | |
range | The range in degrees. |
Implements IlvPort.
virtual void IlvSystemPort::fillPaths | ( | const IlvPalette * | palette, | |
IlUInt | count, | |||
const IlvPointArray * | pathArray | |||
) | const [virtual] |
Fills the shape defined by the given paths.
Fills the shape defined by all the paths described in the IlvPointArray
array pathArray, with the IlvPalette
palette. If count is 1, fillPaths
may be seen as the drawing of a polygon. If none of the paths provided intersect, each polygon is drawn with the palette. The drawing becomes more complex when the paths intersect. A simple way to see this drawing is that when filled areas overlap, the intersection is empty. When a third area intersects with the first two areas, the intersection is filled.
The two objects have no filled intersection.
The small gray area in the middle represents the filled intersection of these three objects, while the white spaces are the overlapping areas between two objects. (For the purpose of this diagram, rectangles have been outlined).
palette | The palette to use for the fill color of the paths. | |
count | The number of paths provided in the IlvPointArray array. | |
pathArray | The array of paths. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::fillPolyLine | ( | const IlvPalette * | palette, | |
const IlvPoint & | first, | |||
IlUInt | count, | |||
const IlvDeltaPoint * | others, | |||
IlBoolean | convex = ((IlBoolean) 0) | |||
) | const [virtual] |
Fills a polygon.
Fills a polygon that is drawn as a series of connected lines that starts at the point whose reference is first, and extends by means of relative positions referred to as the array of others of count relative positions.
If the optional flag convex is set to IlTrue
, drawing convex polygons on certain systems may be accelerated. This feature should only be used when you are sure that the points provided form a convex contour. If this is not the case the result may be unpredictable.
palette | The palette to use for the fill color of the polygon. | |
first | The starting point of the polyline. | |
count | The number of points. | |
others | The other points of the polyline. | |
convex | Flag for convex polygons. |
Reimplemented from IlvPort.
virtual void IlvSystemPort::fillPolyLine | ( | const IlvPalette * | palette, | |
IlUInt | count, | |||
const IlvPoint * | points, | |||
IlBoolean | convex = ((IlBoolean) 0) | |||
) | const [virtual] |
Fills a polygon.
Fills a polygon that is drawn as a series of connected lines between the set of count points referred to as points.
If the optional flag convex is set to IlTrue
, drawing convex polygons on certain systems may be accelerated. This feature should only be used when you are sure that the points provided form a convex contour. If this is not the case the result may be unpredictable.
palette | The palette to use for the fill color of the polygon. | |
count | The number of points. | |
points | The points in the polyline. | |
convex | Flag for convex polygons. |
Implements IlvPort.
virtual void IlvSystemPort::fillRectangle | ( | const IlvPalette * | palette, | |
const IlvRect & | rect | |||
) | const [virtual] |
Fills the given rectangle.
Fills the rectangle specified by rect.
palette | The palette to use for the fill color of the rectangle. | |
rect | The rectangle to fill. |
Reimplemented from IlvPort.
Reimplemented in IlvWindowsVirtualDevice.
virtual void IlvSystemPort::fillRoundRectangle | ( | const IlvPalette * | palette, | |
const IlvRect & | rect, | |||
IlUShort | radius | |||
) | const [virtual] |
Fills a round rectangle.
palette | The palette used for drawing. | |
rect | The rectangle that is drawn. | |
radius | The radius of the round rectangle corners. |
Reimplemented from IlvPort.
static IlvBitmapData* IlvSystemPort::GetBitmapData | ( | IlvSystemPort * | port, | |
const IlvRect * | rect = 0 | |||
) | [static] |
Creates an IlvBitmapData
from a rectangular area in an IlvSystemPort
.
port | The port to create a bitmap data from. | |
rect | The rectangular area in port. |
IlvWindowsHandle IlvSystemPort::getDC | ( | ) | const |
Gets the Windows Handle Device Context.
This Windows-specific member function is called internally to retrieve the HDC used to draw on the port.
Initializes the dump device.
Initializes the dump device so that it writes its result in the filename file. This member function must be called before any other class member function. The region to be dumped is clipped by the bbox parameter. This member function sets the global clip with bbox set as the parameter to be used throughout the device lifespan.
filename | Is usually used to indicate the output filename of the dump. | |
clip | The clipping rectangle to be used when drawing. |
Implements IlvPort.
Reimplemented in IlvWindowsVirtualDevice, and IlvWindowsDevice.
virtual IlBoolean IlvSystemPort::isABitmap | ( | ) | const [virtual] |
Indicates that this port is a bitmap (not a view or a dump device).
The default implementation in class IlvPort
returns IlFalse
. The method is overriden in class IlvBitmap
to return IlTrue
.
IlTrue
if the port is a bitmap, otherwise IlFalse
. Reimplemented from IlvPort.
Reimplemented in IlvBitmap.
virtual IlBoolean IlvSystemPort::isASystemPort | ( | ) | const [virtual] |
Indicates that this port is a true system port (not a dump device).
The default implementation in class IlvPort
returns IlFalse
. The method is overriden in class IlvSystemPort
to return IlTrue
.
IlTrue
if this port is a true system port, otherwise IlFalse
. Reimplemented from IlvPort.
virtual IlBoolean IlvSystemPort::isBad | ( | ) | const [virtual] |
Indicates whether this port is valid.
Indicates whether the display system can allocate the system-dependent part of the IlvPort
. You must not use this port if it is "bad".
IlTrue
if the display system can not allocate the system-dependent part of the IlvPort
. Implements IlvPort.
Reimplemented in IlvWindowsVirtualDevice.
virtual IlBoolean IlvSystemPort::newPage | ( | ) | const [virtual] |
Produces an output page and prepares for a new page.
Produces an output page and prepares the dump device for a new page. If there has been an error, you should stop producing output data.
IlFalse
if there has been an error. Implements IlvPort.
Reimplemented in IlvWindowsVirtualDevice, and IlvWindowsDevice.
void IlvSystemPort::releaseDC | ( | ) |
Releases the Windows Handle Device Context.
This Windows-specific member function is called internally to release the HDC used to draw on the port.
virtual void IlvSystemPort::send | ( | const char * | string | ) | const [virtual] |
Sends character strings to an output device.
Sends any character string to an output device to send information to the device.
string | The string sent to the device. It is the responsibility of the device to interpret this string and perform the proper job. |
Implements IlvPort.
Reimplemented in IlvWindowsDevice.
virtual void IlvSystemPort::setTransformer | ( | const IlvTransformer & | t | ) | [virtual] |
Applies another transformer to the coordinates provided for the drawing functions.
Applies another transformer to the coordinates provided for the drawing functions.
t | The transformer that is applied. |
Implements IlvPort.
Reimplemented in IlvContainer, and IlvWindowsVirtualDevice.
virtual void IlvSystemPort::stretchBitmap | ( | const IlvPalette * | palette, | |
const IlvRect & | from, | |||
const IlvBitmap * | src, | |||
const IlvRect * | clip = 0 | |||
) | const [virtual] |
Stretches a bitmap.
Stretches the dimensions from in the bitmap src to correspond with the size of this IlvPort
object. The result is displayed in the current port with the palette palette, and clipped by the parameter clip.
palette | The palette used for drawing. | |
from | The location of the source area. | |
src | The bitmap to stretch. | |
clip | The destination clip rectangle. |
Implements IlvPort.
virtual void IlvSystemPort::stretchBitmap | ( | const IlvPalette * | palette, | |
const IlvPoint & | to, | |||
const IlvBitmap * | src, | |||
const IlvTransformer & | t, | |||
const IlvRect * | clip = 0 | |||
) | const [virtual] |
Stretches a bitmap.
Draws the bitmap src in the point to, applying the transformation t. (In a Windows environment, you can only zoom in on the object, you cannot rotate.) The result is displayed in the current object.
palette | The palette used for drawing. | |
to | The point to stretch the bitmap to. | |
src | The bitmap to stretch. | |
t | The transformation to apply to the bitmap. | |
clip | The destination clip area. |
Implements IlvPort.
virtual void IlvSystemPort::stretchBitmapData | ( | const IlvPalette * | palette, | |
const IlvBitmapData * | src, | |||
const IlvRect & | from, | |||
const IlvRect & | to, | |||
IlBoolean | opaque = ((IlBoolean) 0) | |||
) | const [virtual] |
Draws a bitmap data.
This method allows bitmap datas to be drawn. If the bitmap data has per pixel alpha, then it is composed with the underlying graphics.
palette | The palette used for drawing. | |
src | The bitmap data to draw. | |
from | The source rectangle in the bitmap data. | |
to | The destination rectangle. | |
opaque | A Boolean value indicating whether per pixel alpha should be taken into account (IlTrue indicates that no per pixel alpha is used). |
Implements IlvPort.
virtual void IlvSystemPort::stretchTransparentBitmap | ( | const IlvPalette * | palette, | |
const IlvRect & | from, | |||
const IlvBitmap * | src, | |||
const IlvRect * | clip = 0 | |||
) | const [virtual] |
Stretches a transparent bitmap.
Stretches the source bitmap src in the rectangle from. The result is displayed in the bitmap src with the palette palette and clipped by parameter clip.
palette | The palette used for drawing. | |
from | The location of the source area. | |
src | The transparent bitmap to stretch. | |
clip | The destination clip rectangle. |
Implements IlvPort.
virtual void IlvSystemPort::stretchTransparentBitmap | ( | const IlvPalette * | palette, | |
const IlvPoint & | to, | |||
const IlvBitmap * | src, | |||
const IlvTransformer & | t, | |||
const IlvRect * | clip = 0 | |||
) | const [virtual] |
Stretches a transparent bitmap.
Stretches the transparent bitmap src to the point to, applying the transformation t. The result is displayed in the current object.
palette | The palette used for drawing. | |
to | The point to stretch the bitmap to. | |
src | The transparent bitmap to stretch. | |
t | The transformation to apply to the bitmap. | |
clip | The destination clip area. |
Implements IlvPort.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.