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

Notification

Icon
Error

Options
Go to last post Go to first unread
nokturnal  
#1 Posted : Wednesday, May 3, 2017 2:04:40 PM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 23

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hey,

I am simply drawing and filling a rectangle using CmykColor [C=204, M=46, Y=0, K=0, A=255] and the output between version 8 and 9 is different (see attached image). Any insight would be helpful.

Quote:

Bitmap baseImage = new Aurigma.GraphicsMill.Bitmap(System.IO.Path.Combine(new string[] { Config.AssetDirPath, "base.tif" }));

CmykColor backgroundColor = (CmykColor)assetCache.First().Value.GetPixel(0, 0); // this is [C=204, M=46, Y=0, K=0, A=255] in both versions

using (var graphics = baseImage.GetAdvancedGraphics())

{

graphics.FillRectangle(new SolidBrush(backgroundColor), new System.Drawing.Rectangle(134, 0, baseImage.Width - 134, baseImage.Height));

}

Thanks,

Andrew

gfmill-cmyk-issue.png

Julia Khoptyan  
#2 Posted : Thursday, May 4, 2017 1:08:04 AM(UTC)
Julia Khoptyan

Rank: Advanced Member

Groups:
Joined: 8/19/2016(UTC)
Posts: 33

Was thanked: 1 time(s) in 1 post(s)
Hey Andrew,

It's hard to say exactly what's the problem by using this code snippet. I need more information:

1) What happens with bitmap after this code? The full code sample will be appreciated.

2) How do you get colors?

3) Which editor/image viewer did you use to open the resulting file?

Could you please send me the code sample, base.tif file, and both resulting files generated by GM 8 and 9? My email is y.khoptyan@aurigma.com.

Best regards,

Julia

nokturnal  
#3 Posted : Thursday, May 4, 2017 7:27:46 AM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 23

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
I have sent you the email with a link to a sample app that demonstrates the issue.
Fedor  
#4 Posted : Sunday, May 7, 2017 11:45:27 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
We confirm the problem and will fix it shortly (Aruigma Bug #0023293). I will keep you informed of the bug status.

The problem occurs when there is an assigned color profile and color management is applied. So you can use the following workaround to fix the problem:

Code:
var colorProfile = bitmap.ColorProfile;
bitmap.ColorProfile = null;

using (var graphics = bitmap.GetAdvancedGraphics())
{
    //Drawing
}

bitmap.ColorProfile = colorProfile;

Edited by user Sunday, May 7, 2017 11:46:06 PM(UTC)  | Reason: Not specified

Best regards,

Fedor Skvortsov

ps4ps  
#5 Posted : Monday, May 22, 2017 8:55:42 AM(UTC)
ps4ps

Rank: Newbie

Groups: Member
Joined: 5/22/2017(UTC)
Posts: 1

I have experienced the same issue and this workaround does not fixe or solve the issue.

Is there a plan for a release to resolve this problem as this determines our purchase of the product.

Thanks,

Phil Sylvester

nokturnal  
#6 Posted : Monday, May 22, 2017 1:45:58 PM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 23

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: ps4ps Go to Quoted Post
I have experienced the same issue and this workaround does not fixe or solve the issue.

You are 100% correct... this work around does not help out at all... I had to roll back to version 8 until a permanent fix is applied. It really sucks as I had to shelve a bunch of PDF code that works in 9 and replace it with some iTextSharp hacks.

Fedor  
#7 Posted : Monday, May 22, 2017 8:29:09 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
I am sorry, this is a high priority bug and we will fix in the nearest 1-2 weeks.

I will keep you informed of the status.

Best regards,

Fedor Skvortsov

Fedor  
#8 Posted : Friday, June 9, 2017 3:37:39 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
We fixed the problem in the recently released version 9.1.14.

The problem had place due to the new Graphics.BlendMode property introduced in the version 9 of Graphics Mill. We changed its default value from BlendMode.Normal to BlendMode.None for backward compatibility with the previous version.

Best regards,

Fedor Skvortsov

Users browsing this topic
Guest
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.