BitmapSizeOptions Class
Defines size-related attributes of a cached bitmap image. A bitmap is scaled based on values that are defined by this class.
Assembly: PresentationCore (in PresentationCore.dll)
| 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. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(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() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
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.



