LEADTOOLS Support
Imaging
Imaging SDK Examples
How to convert between WPF BitmapSource objects and a LEAD RasterImage
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, August 23, 2007 8:53:45 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
In order to use any of the LEADTOOLS image processing commands on a WPF image, it must first be converted to a LEADTOOLS RasterImage. The RasterImageMediaConverter class found in V15 provides easy to use methods to convert a RasterImage object to and from an WPF/BitmapSource/ImageSource object. These methods are listed below.
RasterImageMediaConverter.ConvertFrom
RasterImageMediaConverter.ConvertTo method
The attached code sample will show you how to:
1) Convert a WPF bitmap into a LEADTOOLS RasterImage
2) Flip the image using LEADTOOLS FlipCommand
3) Convert the LEADTOOLS RasterImage back into a WPF bitmap.
In this sample, the image was flipped using the LEADTOOLS FlipCommand. With the use of the RasterImageMediaConverter however, you will have access to LEAD's extensive set of image processing commands which can be applied to your WPF bitmap.
LEADTOOLS Support
Imaging
Imaging SDK Examples
How to convert between WPF BitmapSource objects and a LEAD RasterImage
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.