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

Notification

Icon
Error

Options
Go to last post Go to first unread
ChristianGad  
#1 Posted : Sunday, July 3, 2005 6:50:00 PM(UTC)
ChristianGad

Rank: Member

Groups: Member
Joined: 7/3/2005(UTC)
Posts: 6

Thanks: 1 times
Is it possible to extract the embedded icc profil and save it on the disk.
Fedor  
#2 Posted : Monday, July 4, 2005 2:26:00 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)
Hello,

Sure, for example please read following topic:

Loading and Saving Files with ICC Profiles

Here is the slightly modified code sample from that topic:

Code:
Dim bitmap As New Aurigma.GraphicsMill.Bitmap
'Enable color management
bitmap.ColorManagement.ColorManagementEnabled = True

'Load CMYK image with embedded ICC profile from file
bitmap.Load("C:\Horses.jpg")

'bitmap.ColorProfile.FileName contains the path of the temporary file with ICC profile
'Just copy it to permanent place
System.IO.File.Copy(bitmap.ColorProfile.FileName, "c:\ExtractedProfile.ICC")


Code:
Aurigma.GraphicsMill.Bitmap bitmap = 
    new Aurigma.GraphicsMill.Bitmap();
//Enable color management
bitmap.ColorManagement.ColorManagementEnabled = true;

//Load CMYK image with embedded ICC profile from file
bitmap.Load(@"C:\Horses.jpg");

//bitmap.ColorProfile.FileName contains the path of the temporary file with ICC profile
//Just copy it to permanent place
System.IO.File.Copy(bitmap.ColorProfile.FileName, @"c:\ExtractedProfile.ICC");

Edited by user Wednesday, October 29, 2008 12:48:20 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Dmitry  
#3 Posted : Monday, July 4, 2005 1:20:00 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
By the way the upcoming version of Graphics Mill for .NET will include the feature to extract color profiles without reading bitmaps into memory.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
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.