C# Class Fusion.Engine.Frames.Utils

Some useful stuff
Exibir arquivo Open project: demiurghg/FusionEngine

Public Methods

Method Description
ClipRectangle ( Rectangle bounds, Rectangle &src, Rectangle &dst ) : void
ComputeImageSize ( AutoImageSize imgSize, Rectangle imgRect, Rectangle wndRect ) : Rectangle

Computes size of the auto-sized image

Method Details

ClipRectangle() public static method

public static ClipRectangle ( Rectangle bounds, Rectangle &src, Rectangle &dst ) : void
bounds Rectangle
src Rectangle
dst Rectangle
return void

ComputeImageSize() public static method

Computes size of the auto-sized image
public static ComputeImageSize ( AutoImageSize imgSize, Rectangle imgRect, Rectangle wndRect ) : Rectangle
imgSize AutoImageSize
imgRect Rectangle
wndRect Rectangle
return Rectangle