Rank: Member
Groups: Guest
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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
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
|
|
|
|
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)
|
By the way the upcoming version of Graphics Mill for .NET will include the feature to extract color profiles without reading bitmaps into memory. |
|
|
|
|
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.