Hi,
I am trying to reproduce precisely the Photoshop result with GDPicture. The objective is to a have the exact same result Colorizing a spot channel of Photoshop with a file that have flowers with MIDTONES
The process adopted is :
1 - transform the channel in -TRUECOLORS and use -BALANCE to colorize the channel :
For better understanding I am annexing :
Source File in 8 bits : "FlowersChannel.png"
File Transformed in 24 bits and Colorized :"FlowersTrueRGB.png"
Photoshop File : "Flowers.psd" in .RAR
The process works perfectly. BUT, comparing on Photoshop :
The original PSD (also colored with the same RGB color X File colored with GDPicture - we have the following results :
1 - The color is OK
2 - The intensity of the Grey scales has been changed on GDPicture file and there is a BIG visual Difference from the original.
fIGURE 1 : Print-Screen of Photoshop with both : "FlowersTrueRGB.png" and "Flowers.psd" side by side
How can be adjusted the process to keep the same results as Photoshop, please.
Thanks.
The CODE adpoted is :
----------------------------------------------------------------------------------------------------------------
ImgCamada is string = "F:\Temp\PSD\Teste Grande\FlowersChannel.png"
Status is int
nNativeImageHandle1 = 0
ocxGdVwImgOrigCamada1>>Clear()
ocxGdVwImgOrigCamada1>>CloseImage()
nNativeImageHandle1 = ocxGdPicImgOrigCamada>>GetNativeImage()
ocxGdPicImgOrigCamada>>CloseImage((nNativeImageHandle1))
ocxGdPicImgOrigCamada>>CloseNativeImage()
////// Charge the Initial File in the OCX View Control //////////////
Colortex.ocxGdVwImgOrigCamada1>>DisplayFromFile(ImgCamada)
ocxGdVwImgOrigCamada1>>SetZoomFitControl()
////// Charge the Initial File in the OCX Control //////////////
ocxGdPicImgOrigCamada>>CreateImageFromFile(ImgCamada)
////// If the cCharge of the Initial File in the OCX Control succeed //////////////
IF ocxGdPicImgOrigCamada>>GetStat = 0 THEN
nNativeImageHandle1 = ocxGdPicImgOrigCamada>>GetNativeImage()
ocxGdPicImgOrigCamada>>SetNativeImage((nNativeImageHandle1))
END
////// Perform the Colorizing operation //////////////
ocxGdPicImgOrigCamada>>AdjustRGB(Val(EdtRFinal1)-Val(EdtRoriginal)-3,0,0)
ocxGdPicImgOrigCamada>>AdjustRGB(0,Val(EdtGfinal1)-Val(EdtGoriginal)-3,0)
ocxGdPicImgOrigCamada>>AdjustRGB(0,0,Val(EdtBfinal1)-Val(EdtBoriginal)-3)
nNativeImageHandle1 = ocxGdPicImgOrigCamada>>GetNativeImage()
////// Display the result in the OCX Control View //////////////
ocxGdVwImgOrigCamada1x>>DisplayFromGdPictureImage((nNativeImageHandle1))
ocxGdVwImgOrigCamada1x>>SetZoomFitControl()
////// Save the resultant file in the HDD //////////////
ArqExportado is string = "F:\Temp\PSD\testexxx_png\FlowersTrueRGB.png"
ocxGdPicImgOrigCamada>>SaveAsPNG(ArqExportado)
-----------------------------------------------------------------------------------------------------------------