Click or drag to resize
CanvasDeviceMaximumBitmapSizeInPixels Property
Reports the maximum size of bitmaps supported on this device, in pixels.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public int MaximumBitmapSizeInPixels { get; }

Property Value

Type: Int32
Remarks

This size limit is reported in pixels. The limit applies to both the width and height of bitmaps. It will vary depending on the Direct3D feature level of the device, and whether the device has hardware acceleration enabled. To convert the size limit from pixels to DIPs, use the ConvertPixelsToDips method found on CanvasControl, CanvasDrawingSession, or CanvasRenderTarget.

For more information, see DPI and DIPs.

See Also