Search found 76 matches

by pablobhz
2017-04-08T06:59:04-07:00
Forum: Magick.NET
Topic: Replace all pixels on a image with an specific color
Replies: 4
Views: 11367

Re: Replace all pixels on a image with an specific color

My current try: ushort c_CMYK = 0; ushort m_CMYK = 100; ushort y_CMYK = 100; ushort k_CMYK = 0; using (MagickImage spotImage = new MagickImage(@"C:\inputfolder\8FILES_IMPOSED_4UP_BACK.PDF (Imposition)00.TIF")) { spotImage.ColorSpace = ColorSpace.CMYK; using (PixelCollection pc = spotImage.GetPixels(...
by pablobhz
2017-04-06T11:01:15-07:00
Forum: Magick.NET
Topic: Replace all pixels on a image with an specific color
Replies: 4
Views: 11367

Re: Replace all pixels on a image with an specific color

First step : combine all 4 cmyk images Second: Add this square cmyk image onto it This is part of my app. It's a preview of the image that is going to be print (industrial printers , large scale). EDIT: I believe what i'm need to do is to composite the image. Thats it. After converting the Impositio...
by pablobhz
2017-04-06T07:28:22-07:00
Forum: Magick.NET
Topic: Replace all pixels on a image with an specific color
Replies: 4
Views: 11367

Re: Replace all pixels on a image with an specific color

I forgot to post. This is the current code i have: using (MagickImage spotImage = new MagickImage(@"C:\DI_PLOT\Bitmaps\8FILES_IMPOSED_4UP_BACK.PDF (Imposition)00.tif")) { float[] cmyk = new float[4]; cmyk[0] = 0; //C cmyk[1] = 100; //M cmyk[2] = 100; //Y cmyk[3] = 0; //K //Converting to RGB var r = ...
by pablobhz
2017-04-06T06:18:52-07:00
Forum: Magick.NET
Topic: Replace all pixels on a image with an specific color
Replies: 4
Views: 11367

Replace all pixels on a image with an specific color

Hello everyone. I have an image, that is just an empty square. The image is a TIFF Grayscale, an negative of an specific CMYK color. This CMYK color, is composed by (example): 0% C 30% M 20% K 0% Y I know i can't create an CMYK color on the .NET interface, however, i've found the following calculati...
by pablobhz
2017-04-03T18:40:38-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Re: Missing black channel when using MagickCollection.Combine()

30 seconds sounds a bit long but with the images your provided me it will take a while and require quite a lot of memory. Are you using the x64 version or the x86 version of Magick.NET? If you are using the x86 one you might want to give the x64 one a try. And you really don't need to change the Co...
by pablobhz
2017-04-03T14:33:15-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Re: Missing black channel when using MagickCollection.Combine()

With the latest version (7.0.5.500) I was able to get the same output as on the command line with the following code: using (MagickImageCollection images = new MagickImageCollection()) { images.Add("8FILES_IMPOSED_4UP_BACK.PDF (C)00.TIF"); images.Add("8FILES_IMPOSED_4UP_BACK.PDF (M)00.TIF"); images...
by pablobhz
2017-04-02T07:40:46-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Re: Missing black channel when using MagickCollection.Combine()

With the latest version (7.0.5.500) I was able to get the same output as on the command line with the following code: using (MagickImageCollection images = new MagickImageCollection()) { images.Add("8FILES_IMPOSED_4UP_BACK.PDF (C)00.TIF"); images.Add("8FILES_IMPOSED_4UP_BACK.PDF (M)00.TIF"); images...
by pablobhz
2017-03-23T17:55:00-07:00
Forum: Magick.NET
Topic: Negate images on MagickNET
Replies: 10
Views: 13320

Re: Negate images on MagickNET

I assume I can use the images from this topic: https://www.imagemagick.org/discourse-server/viewtopic.php?f=27&t=31621. Exactly this topic . I got the directions for doing the combine thing using ImageMagick and then I got how to do it with MagickNET But I still have a question about combine an cmy...
by pablobhz
2017-03-23T17:49:51-07:00
Forum: Magick.NET
Topic: Negate images on MagickNET
Replies: 10
Views: 13320

Re: Negate images on MagickNET

Okay I will wait .
If needed I can supply the images I'm using (testing purposes )
Thanks in advance
by pablobhz
2017-03-23T17:42:53-07:00
Forum: Magick.NET
Topic: Negate images on MagickNET
Replies: 10
Views: 13320

Re: Negate images on MagickNET

Perhaps I could try an earlier version of MagickNET ?
I'm using the AnyCPU version (latest) from NuGet.
by pablobhz
2017-03-23T17:26:52-07:00
Forum: Magick.NET
Topic: Negate images on MagickNET
Replies: 10
Views: 13320

Re: Negate images on MagickNET

dlemstra wrote:
2017-03-23T17:23:32-07:00
What happens when you do "ColorSpace = ImageMagick.ColorSpace.CMYK;" inside the foreach loop? (after the negate)
Yeah I did . And the output was a totally white image .
The original images are on the Gray colorspace . If I force them to cmyk things go wrong
by pablobhz
2017-03-23T17:08:41-07:00
Forum: Magick.NET
Topic: Negate images on MagickNET
Replies: 10
Views: 13320

Re: Negate images on MagickNET

Have you tried to just do currImage.Negate()? Yeah I did Also I tried to add the negated images to a new MagickImage collection , same result . Of course , when combining I have different results if I set the colorspace to cmyk or not ; my impression is that by leaving the colorspace the default (i...
by pablobhz
2017-03-23T07:00:49-07:00
Forum: Magick.NET
Topic: Negate images on MagickNET
Replies: 10
Views: 13320

Negate images on MagickNET

Hello. I've analyzed the Object Reference inside visual studio, for negating images. However, the output (final image) isn't being the expected. I'm using this approach: foreach(MagickImage currImage in images) { currImage.Negate(true, ImageMagick.Channels.All); } using (MagickImage image = images.C...
by pablobhz
2017-03-22T21:52:09-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Re: Missing black channel when using MagickCollection.Combine()

Your files named (C) (M) etc do not represent cyan, magenta, etc. That is a problem. They represent the negatives of cyan, magenta etc. So we need to negate them before we can use them. (I'll explain. A file representing K, black ink, will have high values where we want lots of black ink, and low v...
by pablobhz
2017-03-22T14:04:58-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Re: Missing black channel when using MagickCollection.Combine()

I'll try as soon o get home But I was using negate the same way you did , and I was still missing the black channel . I'm pretty sure MagickNET has an equivalent to negate ; probably . Perhaps I have to rewrite the files negates before combining them ; it's an approach Thanks for your attention and ...