Rank: Member
Groups: Guest
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! Tristan
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello, Explicit call of the type conversion operator is not allowed in C#. So you should use following code instead: Code:Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(
(Aurigma.GraphicsMill.Color)System.Drawing.ColorTranslator.FromHtml("#FF0000"),
bmp1.Width, bmp2.Height, Aurigma.GraphicsMill.PixelFormat.Format32bppArgb);
|
|
|
|
|
Rank: Member
Groups: Guest
Joined: 2/15/2007(UTC) Posts: 18
|
Aha - I see. Many thanks Alex...
|
|
|
|
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.