Επεξεργασία

Κοινή χρήση μέσω


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

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
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.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also