BitmapSizeOptions Class

BitmapSizeOptions Class

 

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

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Media.Imaging.BitmapSizeOptions

public class BitmapSizeOptions

NameDescription
System_CAPS_pubpropertyPixelHeight

The height, in pixels, of the bitmap image.

System_CAPS_pubpropertyPixelWidth

The width, in pixels, of the bitmap image.

System_CAPS_pubpropertyPreservesAspectRatio

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

System_CAPS_pubpropertyRotation

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFromEmptyOptions()

Initializes a new instance of BitmapSizeOptions with empty sizing properties.

System_CAPS_pubmethodSystem_CAPS_staticFromHeight(Int32)

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

System_CAPS_pubmethodSystem_CAPS_staticFromRotation(Rotation)

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

System_CAPS_pubmethodSystem_CAPS_staticFromWidth(Int32)

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

System_CAPS_pubmethodSystem_CAPS_staticFromWidthAndHeight(Int32, Int32)

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

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft