Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Thursday, April 26, 2007 11:29:20 AM(UTC)

Rank: Member

Groups: Member
Joined: 2/15/2007(UTC)
Posts: 18

Dear Aurigma,

We have been using a licensed version of your Grpahics Mill for .Net in one of our web applications. Until now, this application has been running ASP.NET 1.1 but we have just upgraded it to 2.0.

We have resolved all .NET upgrade issues (1.1 - 2.0) within our application except for one that is being raised by Graphics Mill.

At the moment, when trying to compile the application, the following line of code:

Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(Aurigma.GraphicsMill.Color.op_Implicit(System.Drawing.ColorTranslator.FromHtml("#FF0000")), bmp1.Width, bmp2.Height, Aurigma.GraphicsMill.PixelFormat.Format32bppArgb);

Is causing the following compilation error:

'Aurigma.GraphicsMill.Color.implicit operator long(Aurigma.GraphicsMill.Color)': cannot explicitly call operator or accessor

We have tried removing the Aurigma.GraphicsMill dll, downloading the Graphics mill for .Net 2.0 and installing that (i.e. putting the 2.0 version of graphics mill dll in place), but we are still getting this error...

This seems to be being caused by op_Implicit .. but do you have any idea what the issue is??

Many Thanks in advance!


Alex Kon  
#2 Posted : Friday, April 27, 2007 12:37:16 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)

Explicit call of the type conversion operator is not allowed in C#. So you should use following code instead:

Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(
    bmp1.Width, bmp2.Height, Aurigma.GraphicsMill.PixelFormat.Format32bppArgb);
#3 Posted : Saturday, April 28, 2007 9:34:40 PM(UTC)

Rank: Member

Groups: Member
Joined: 2/15/2007(UTC)
Posts: 18

Aha - I see. Many thanks Alex...
Users browsing this topic
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.