Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, August 23, 2007 8:53:45 AM(UTC)

Otis  
Guest

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.
File Attachment(s):
RasterImageMediaConverter.zip (13kb) downloaded 86 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.048 seconds.