rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvBitmapTransition Class Reference

Bitmap transition class. More...

#include <ilviews/bitmaps/transition.h>

Inheritance diagram for IlvBitmapTransition:
IlvAlphaBitmapTransition IlvDissolveBitmapTransition IlvSimpleBitmapTransition

List of all members.

Public Member Functions

virtual void computeTransitionBitmapData (IlDouble oldRate, IlDouble newRate, const IlvRGBBitmapData &src, const IlvRGBBitmapData &dst, IlvRGBBitmapData &current, IlvRegion &region) const =0
 Computes a transition image between the specified bitmap data objects.

Static Public Member Functions

static void Draw (IlvPort &dst, const IlvPoint &at, const IlvBitmapData &src, const IlvRegion &region)
 Draws the specified region of the bitmap data object into the specified port.

Detailed Description

Bitmap transition class.

Library: display

This abstract class is the base class for all bitmap transition classes. It provides an interface to sample transitions between two bitmap data objects of the same size and color depth. This class can be used with the IlvBitmapTransitionHandler class to provide animation between two images.

See also:
IlvRGBBitmapData

Member Function Documentation

virtual void IlvBitmapTransition::computeTransitionBitmapData ( IlDouble  oldRate,
IlDouble  newRate,
const IlvRGBBitmapData src,
const IlvRGBBitmapData dst,
IlvRGBBitmapData current,
IlvRegion region 
) const [pure virtual]

Computes a transition image between the specified bitmap data objects.

This method is pure and must be defined in subclasses. It computes a transition image given a source bitmap data object, a destination bitmap data object, and a percentage of completion of the transition. src and dst must have the same size and color depth.
When calling this method, current must contain the transition image corresponding to the oldRate percentage of completion. After returning, current contains the transition image corresponding to the newRate percentage of completion.

Parameters:
oldRate The previous percentage of completion of the transition. Valid values are double values in the interval 0-100.
newRate The new percentage of completion of the transition. Valid values are double values in the interval 0-100.
src The source bitmap data.
dst The destination bitmap data.
current The current bitmap data.
region The region of the current bitmap that has changed between the transition from oldRate to newRate.

Implemented in IlvAlphaBitmapTransition, IlvSimpleBitmapTransition, and IlvDissolveBitmapTransition.

static void IlvBitmapTransition::Draw ( IlvPort dst,
const IlvPoint at,
const IlvBitmapData src,
const IlvRegion region 
) [static]

Draws the specified region of the bitmap data object into the specified port.

Parameters:
dst The destination port.
at The location where the bitmap data will be copied.
src The source bitmap data.
region The region of the bitmap data that will be copied into dst.

© 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.