Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi,
Just wondering is that possible for us to have an example of using Graphic Mill .NET in WPF?
Please advice.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hello Ching-Yen, You can convert Aurigma.GraphicsMill.Bitmap to System.Windows.Media.Imaging.BitmapSource. THe following code demonstrates how to do it: Code:public static System.Windows.Media.Imaging.BitmapSource CreateBitmapSource(Aurigma.GraphicsMill.Bitmap bitmap)
{
if (bitmap == null)
throw new System.ArgumentNullException("bitmap");
if (bitmap.IsCmyk || bitmap.IsExtended || bitmap.IsGrayScale)
bitmap.ColorManagement.Convert(Aurigma.GraphicsMill.PixelFormat.Format24bppRgb);
System.IntPtr hBitmap = bitmap.Handle;
System.Windows.Media.Imaging.BitmapSource result = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(
hBitmap,
System.IntPtr.Zero,
System.Windows.Int32Rect.Empty,
System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());
return result;
}
Edited by moderator Wednesday, March 16, 2011 11:18:47 AM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi,
We was told that Graphic Mill does work with WPF and the Photo KIOSK application were being done by using WPF? We were looking into using MLV in WPF. Thanks.
Please advice.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello,
Photo Kiosk uses Graphics Mill for all imaging-related stuff like loading images, creating thumbnails and so on. User interface of Photo Kiosk is written from scratch. Graphics Mill does not provide Vector Objects like functinality in WPF. The way how Photo Kiosk is integrated with Graphics Mill is described by Tamila in her last post in this thread. |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi,
So, in short, we can not use MLV and all it's functionality in WPF?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Quote:So, in short, we can not use MLV and all it's functionality in WPF? Yes, it is correct. Vector Objects functionality is not supported in WPF. |
|
|
|
|
Forum Jump
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.