This project has moved. For the latest updates, please go here.

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);
    }
}

Last edited Sep 17, 2016 at 3:18 PM by SARAFF, version 2