Converters Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for