This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
ChingYen  
#1 Posted : Monday, August 3, 2009 8:06:01 AM(UTC)
ChingYen

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.

Tamila  
#2 Posted : Tuesday, August 4, 2009 1:43:46 AM(UTC)
Tamila

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

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
ChingYen  
#3 Posted : Wednesday, August 5, 2009 8:35:03 AM(UTC)
ChingYen

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.
Dmitry  
#4 Posted : Wednesday, August 5, 2009 8:38:30 PM(UTC)
Dmitry

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.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
ChingYen  
#5 Posted : Wednesday, August 5, 2009 11:30:21 PM(UTC)
ChingYen

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?


Dmitry  
#6 Posted : Thursday, August 6, 2009 1:59:21 AM(UTC)
Dmitry

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.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest (3)
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.