Chỉnh sửa

BitmapSizeOptions Class

Definition

Defines size-related attributes of a cached bitmap image. A bitmap is scaled based on values that are defined by this class.

public ref class BitmapSizeOptions
public class BitmapSizeOptions
type BitmapSizeOptions = class
Public Class BitmapSizeOptions
Inheritance
BitmapSizeOptions

Properties

Name Description
PixelHeight

The height, in pixels, of the bitmap image.

PixelWidth

The width, in pixels, of the bitmap image.

PreservesAspectRatio

Gets a value that determines whether the aspect ratio of the original bitmap image is preserved.

Rotation

Gets a value that represents the rotation angle that is applied to a bitmap.

Methods

Name Description
FromEmptyOptions()

Initializes a new instance of BitmapSizeOptions with empty sizing properties.

FromHeight(Int32)

Initializes an instance of BitmapSizeOptions that preserves the aspect ratio of the source bitmap and specifies an initial PixelHeight.

FromRotation(Rotation)

Initializes an instance of BitmapSizeOptions that preserves the aspect ratio of the source bitmap and specifies an initial Rotation to apply.

FromWidth(Int32)

Initializes an instance of BitmapSizeOptions that preserves the aspect ratio of the source bitmap and specifies an initial PixelWidth.

FromWidthAndHeight(Int32, Int32)

Initializes an instance of BitmapSizeOptions that does not preserve the original bitmap aspect ratio.

Applies to

See also