Converters Class

Definition

Contains a set of converters from Bitmap to BitmapImage, for easy conversion of legacy code that still uses the obsolete System.Drawing library

public static class Converters
type Converters = class
Public Class Converters
Inheritance
Converters

Methods

AdjustImageDestination(BitmapImage, Point, Rectangle)

Adjusts the target position and size so that a given image can be copied to a target image without scaling and without further cropping. This ensures the destination rectangle, starting at the given point lies within the image.

ToBitmapImage(Bitmap)

Convert a Bitmap to a BitmapImage

Applies to