CMvcLogicalPart::ScaleRelative

Zooms in by the specified ratio

Defined in: MvcLogicalPart.h

Syntax

ScaleRelative(int xNum, int xDenom, int yNum, int yDenom)

ScaleRelative(float fScaleWidth, float fScaleHeight)

Return Value

The logical size of the visual part after the scaling

Parameters

xNum

The numerator to multiply the width by

xDenom

The denominator to divide the width by

yNum

The numerator to multiply the height by

yDenom

The denominator to divide the height by

fScaleWidth

Fraction to multiply the width by

fScaleHeight

Fraction to multiply the height by

Comments

This function scales the logical extents relative to the current scaling factor. For example, calling ScaleRelative() repeatedly with the ration of 2/1 will continue to zoom in further after each call.

pPoint

A pointer to a point to anchor