getDestinationRectangle Method (ImageViewer)

Summary

Utility method to adjust the given LeadRectD based on source size, size mode and alignment

Syntax

JavaScript Syntax
TypeScript Syntax
static getDestinationRectangle(sourceWidth: number, sourceHeight: number, destinationRect: LeadRectD, sizeMode: ControlSizeMode, horizontalAlignment: ControlAlignment, verticalAlignment: ControlAlignment): LeadRectD;

Parameters

sourceWidth

Source width

sourceHeight

Source height

destinationRect

Initial destination rectangle

sizeMode

Controls how the source size is positioned and scaled inside the destination rectangle

horizontalAlignment

Controls how the source size is aligned horizontally inside the destination rectangle

verticalAlignment

Controls how the source size is aligned vertically inside the destination rectangle

Return Value

The new destination rectangle adjusted based on the source size, size mode and alignment.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize