View on GitHub

SARAFF SOFTWARE

All products / Saraff.Twain.DS / Contents

DefaultImageLayout

Gets the default image layout.

Syntax

protected virtual RectangleF DefaultImageLayout {
    get;
}

Property Value

The default image layout.

Remarks

You can use a ImageLayoutAttribute or override a DefaultImageLayout property.

Examples

[ImageLayout(0f, 0f, 8.5f, 11.2f)]
public sealed class ScreenDataSource:BitmapDataSource {
    // ...
}
protected override RectangleF DefaultImageLayout {
    get {
        return new RectangleF(
            this._Screen.Bounds.X/this._resolution,
            this._Screen.Bounds.Y/this._resolution,
            this._Screen.Bounds.Width/this._resolution,
            this._Screen.Bounds.Height/this._resolution);
    }
}