Color in Grayscale file

Example requests & Code samples for GdPicture Toolkits.
Post Reply
giraudbr
Posts: 6
Joined: Wed Apr 09, 2014 7:41 pm

Color in Grayscale file

Post by giraudbr » Wed Apr 09, 2014 8:26 pm

Dear Loic,

I develloped an application to read TIF files (textile designs) identify all the spot colors of the design and change them one by one according to new color selected on a specific palette or Textile Pantone. The design is flatted in this case.

Now I have to do the same job on Textile designs that are issued from Photoshop in multi channels. That means that each color of the design has its own channels
(Example : Design with 3 colors.
First Color = First Channel = Spot color - Black
Second Color = Second Channel = Spot color - Red
Third Color = Third Channel = Grayscale - Brown

Is it possible with GDPicture to change the color of the third color (third channel - brown) from Brown to Blue for example maintaining the graysacle effect and then show all the channels (2 spot channels + 1 grayscale channel) together in GDPicture View as the result of the superposition?
I am annexing 2 zips : 1 - Original PSD file with all the channels together ; 2 - the 3 Separated Channels in PSD format

Best Regards
Christian
Attachments
TesteX_SeparatedChannels.rar
(375.32 KiB) Downloaded 341 times
TesteX_OriginalPSD_ChannelsTogether.rar
(366.1 KiB) Downloaded 341 times

giraudbr
Posts: 6
Joined: Wed Apr 09, 2014 7:41 pm

Re: Color in Grayscale file

Post by giraudbr » Wed Apr 09, 2014 9:58 pm

Dear Loic,
I found a command line application PSDPARSE (from Telegraphics) to generate separated files (.PNG) from the Photoshop PSD file witout loosing quality. I am anexig the 3 PNG files.
Best Regards
Christian
Attachments
testexxx.psd.alpha.png
testexxx.psd.2.png
testexxx.psd.1.png

User avatar
Ronalder
Posts: 1
Joined: Thu Mar 20, 2014 7:31 pm
Location: Tunisia
Contact:

Important

Post by Ronalder » Thu Apr 10, 2014 3:58 am

It is remarkable, it is the amusing information

giraudbr
Posts: 6
Joined: Wed Apr 09, 2014 7:41 pm

Re: Color in Grayscale file

Post by giraudbr » Tue Apr 22, 2014 11:00 pm

I succeed to overlap/merge 3 files with the code (in Windev) :

Camada1 = ocxGdPicImgCamadasCombinadas>>CreateImageFromFile("F:\Temp\PSD\testexxx_png\testeExportadoC1.png")
largura1 = ocxGdPicImgCamadasCombinadas>>GetWidth()
Altura1 = ocxGdPicImgCamadasCombinadas>>GetHeight()

Camada2 = ocxGdPicImgCamadasCombinadas>>CreateImageFromFile("F:\Temp\PSD\testexxx_png\testeExportadoC2.png")
largura2 = ocxGdPicImgCamadasCombinadas>>GetWidth()
Altura2 = ocxGdPicImgCamadasCombinadas>>GetHeight()

Camada3 = ocxGdPicImgCamadasCombinadas>>CreateImageFromFile("F:\Temp\PSD\testexxx_png\testeExportadoC3.png")
largura3 = ocxGdPicImgCamadasCombinadas>>GetWidth()
Altura3 = ocxGdPicImgCamadasCombinadas>>GetHeight()

ocxGdPicImgCamadasCombinadas>>SetNativeImage(Camada1)
ocxGdPicImgCamadasCombinadas>>DrawImageTransparencyColor(Camada2, White, 0, 0, largura2, Altura2)
ocxGdPicImgCamadasCombinadas>>DrawImageTransparencyColor(Camada3, White, 0, 0, largura3, Altura3)
ocxGdPicImgCamadasCombinadas>>SaveAsPNG("F:\Temp\PSD\testexxx_png\Combiandos2.png")

This only works with small size files. Whwn the files are bigger - which is my specific case 9123 pixels x 9781 pixels and 24 bitspp - the Overlap/Merge failed completely.

Is there any memory limitation for GDPicture ToolKit Pro edition (V5) - this is yhe version I actually working with -
In a newer version there is no limitation ?

I am anexing the 3 bigger files
Thanks

giraudbr
Posts: 6
Joined: Wed Apr 09, 2014 7:41 pm

Re: Color in Grayscale file

Post by giraudbr » Tue Apr 22, 2014 11:13 pm

Sorry,

The files were too big to be anexed

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest