Softelvdm.Controls Class Library for Windows Controls 1.0

CalcRotatedSize Method, GenericPartClass Class

Softel vdm, Inc.

Calculates the size of the smallest rectangle that can contain the rotated rectangle of a given size, based on the part's Angle property.

Syntax      GenericPartClass Class (Softelvdm.Controls)

VB   

Protected Function CalcRotatedSize( ByVal szf As SizeF ) As SizeF

C#   

protected SizeF CalcRotatedSize( SizeF szf );

C++   

protected: SizeF CalcRotatedSize( SizeF szf );

szf

The size of the rectangle for which the containing, rotated rectangle size is to be determined.

Return Value

The size of the smallest containing rectangle.

Comments

The CalcRotatedSize method calculates the size of the smallest rectangle that can contain the rotated rectangle of a given size, based on the part's Angle property.

This function is typically used to determine the rectangular space occupied by a rotated part.

Version Information

Supported in version 1.0.
Products Table


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com