Hi, Thanks for the help, Here are some more details: I have two image controls on a form. I'm loading an RGB file through: Image1.picture.LoadFromFile() then I set the pixelformat to 24bit I have an Image2 as welll which I set to 32bit, this is intended to hold and show the image of the CMYK then I set the size (in pixels) of image2 to image1 as follow: Image2.picture.Bitmap.width := Image2.picture.Bitmap.width; Image2.picture.Bitmap.height := Image2.picture.Bitmap.height; for the transform, I open a local input profile form the system directory, like Adobe RGB, for destination I open an ICC that was created for a HP large format printer (CMYK) I loop through scanline as a buffer so the actual transform is: cmdDoTransform(xform,Image1.picture.Bitmap.ScanLine[i],xform,Image2.picture.Bitmap.ScanLine[i], picW); As I mentioned, the transformation works but when I show Image2 on a form, depends on the ICC, sometome I get stripes and other times it seems like a negative of a picture. When I try to use cmsCreateproofingTransform where the source is Adobe RGB, the destination is the same and the proof is the CMYK icc that I want to render, I get an error that the "the proof profile has not previewing capabilities" although this is an ICC that we created and works fine. Any ideas what is that I'm doing wrong? Thanks Ran
-----Original Message----- From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 1/10/2008 15:10 To: lcms-user@lists.sourceforge.net Cc: Subject: Lcms-user Digest, Vol 20, Issue 5 Send Lcms-user mailing list submissions to lcms-user@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/lcms-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Lcms-user digest..." Today's Topics: 1. Re: RGB to CMYK uing Delphi (Hal V. Engel) 2. Re: RGB to CMYK using Delphi (Friedhelm K?nig) 3. Unscaled XYZ profile creation measurement data (Michael A. Litscher) ---------------------------------------------------------------------- Message: 1 Date: Wed, 9 Jan 2008 16:42:10 -0800 From: "Hal V. Engel" <[EMAIL PROTECTED]> Subject: Re: [Lcms-user] RGB to CMYK uing Delphi To: lcms-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="utf-8" On Wednesday 09 January 2008 02:14:06 Ran Rozin wrote: > Hi, > > I have a beginner question. > > I load an RGB file and try to apply a printer CMYK profile using > cmsDotarnsform and scanline method (I?m using Delphi). > > The RGB that I load is set to pf24bit and the other image (which I would > like to show after the cmyk profile applied) is pf32bit. > > In the cmsCreateTransform I?m using TYPE_BGR_8 for the source and > TYPE_Cmyk_8 for the destination. > > The image that I draw to the screen (after the profile) looks horrible, so > I know that a transformation was made but the image looks like a negative > of the actual source. I?m probably doing something wrong, but I can?t find > what? Maybe I have to use the proof function for such thing. > > > > My question is ? what am I doing wrong? Do I need a specific struct to hold > CMYK other than the pf32bit? > > > > Thanks > > > > Ran You don't say how you are displaying the image. I suspect that it is an issue with your viewer. Hal ------------------------------ Message: 2 Date: Thu, 10 Jan 2008 08:00:13 From: Friedhelm K?nig <[EMAIL PROTECTED]> Subject: Re: [Lcms-user] RGB to CMYK using Delphi To: lcms-user@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="utf-8" Hi, I am guessing here, but are you using JPG images to store the CMYK results? If so, the problem is most likely, that there is no standard way to store CMYK values in a JGP. Some software products store Black as 0,0,0,0, (vanilla encoding) others as 255, 255, 255, 255 (chocolate encoding, using 8 bit). The closest thing to a standard is using vanilla encoding if an Adobe marker is present in the file, or chocolate otherwise. It is possible to produce the other encoding by changing the destination encoding thus correcting for your problem. Regards i.A. Dr. Friedhelm K?nig OneVision Software Entwicklungs GmbH & Co. KG Servatiiplatz 7-9 ? 48143 M?nster Sitz der Gesellschaft: Regensburg Pers?nlich haftende Gesellschafterin: OneVision Software Entwicklungs Verwaltungs GmbH Dr.-Leo-Ritter-Strasse 9, 93049 Regensburg Sitz der Gesellschaft: Regensburg Handelsregister: HRB 8932, Amtsgericht Regensburg Gesch?ftsf?hrer: Ulrike D?hler, Manuela Kluger "Hal V. Engel" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10.01.2008 01:45 To lcms-user@lists.sourceforge.net cc Subject Re: [Lcms-user] RGB to CMYK uing Delphi On Wednesday 09 January 2008 02:14:06 Ran Rozin wrote: > Hi, > > I have a beginner question. > > I load an RGB file and try to apply a printer CMYK profile using > cmsDotarnsform and scanline method (I?m using Delphi). > > The RGB that I load is set to pf24bit and the other image (which I would > like to show after the cmyk profile applied) is pf32bit. > > In the cmsCreateTransform I?m using TYPE_BGR_8 for the source and > TYPE_Cmyk_8 for the destination. > > The image that I draw to the screen (after the profile) looks horrible, so > I know that a transformation was made but the image looks like a negative > of the actual source. I?m probably doing something wrong, but I can?t find > what? Maybe I have to use the proof function for such thing. > > > > My question is ? what am I doing wrong? Do I need a specific struct to hold > CMYK other than the pf32bit? > > > > Thanks > > > > Ran You don't say how you are displaying the image. I suspect that it is an issue with your viewer. Hal ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Thu, 10 Jan 2008 02:55:48 -0600 From: "Michael A. Litscher" <[EMAIL PROTECTED]> Subject: [Lcms-user] Unscaled XYZ profile creation measurement data To: Little CMS Mailing List <lcms-user@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 Hello all, Does anyone know what lcms functions to call to get the unscaled XYZ measurement data from a monitor's profile for the RGB(0, 0, 0) and RGB(255, 255, 255) swatches used during the profile's creation? Also, would it be safe to assume that the measurement data for these two swatches exists in every monitor profile created using industrial grade profiling software? I would like to use this data to shift and scale any further measurements of the monitor from XYZ(0, 0, 0) to XYZ(monitor's white point) without having to re-display and re-read RGB(0, 0, 0) and RGB(255, 255, 255) swatches. It would also allow me to measure any shifts in luminance and chromaticity since the profile's creation. The cmsTakeCharTargetData function seems the most likely, but the documentation for this function states that the tag this data is stored under is optional. If this data isn't available, how do I get the absolute luminance XYZ value? The function cmsIsTag returns true for icSigLuminanceTag, but none of the exported cmsTake functions seem to capable of returning an XYZ structure or just Y for icSigLuminanceTag. The ReadICCXYZ function looks capable, but it isn't exported. Thank you for your time, Michael A. Litscher CTO, ColorMetrix Technologies, LLC ------------------------------ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ------------------------------ _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user End of Lcms-user Digest, Vol 20, Issue 5 ****************************************
<<winmail.dat>>
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user