Search found 67 matches

by pablobhz
2017-04-11T08:00:46-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 10758

Re: Possible bug when defining a new ColorSpace

A grayscale image has only one channel. I need to change the values on a rGB scale or CMYK scale. I got an method that uses unsafe code (pointers to the memory) for doing that ; however, it's still slow for doing all the stuff. I think MagickNET can be faster. Should i delete this topic, since it is...
by pablobhz
2017-04-10T18:25:07-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 10758

Re: Possible bug when defining a new ColorSpace

Let me see if i got it correctly.

My goal: After set the image ColorSpace to CMYK , set the channels individually on the image. IM won't do that ?
Ex:
1 - Set the image colorspace to CMYK
2 - On some pixels , i want C(0), M(0.3), Y(0.1), K(0)
by pablobhz
2017-04-10T07:47:56-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 10758

Re: Possible bug when defining a new ColorSpace

The screenshot came from Visual Studio 2015 (Community Edition, Free)
by pablobhz
2017-04-09T23:31:44-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 10758

Re: Possible bug when defining a new ColorSpace

The syntax is correct. using (MagickImage testImage = new MagickImage(@"C:\inputfolder\testimage.png")) { testImage.ColorSpace = ColorSpace.CMYK; } I'm not using the command line interface, i'm using the .NET Wrapper. After set the ColorSpace to CMYK, when i try to access the channels they aren't be...
by pablobhz
2017-04-09T21:25:40-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 10758

Possible bug when defining a new ColorSpace

Hello everyone. I've noted this today. When you set the ColorSpace to CMYK, you expect the channels to be "Cyan, Magenta, Yellow, Black". However, it isn't being that way. I attached an screenshot, where channels can be clearly see as "Cyan , Green , Blue, Black". Even when i set the ColorSpace to s...
by pablobhz
2017-04-09T11:36:54-07:00
Forum: Magick.NET
Topic: Update PixelCollection
Replies: 0
Views: 12824

Update PixelCollection

I'm using the following code trying to change the pixel color: //small test: just a really small image to debug and check pixel values using (MagickImage spotImage = new MagickImage(@"C:\test\small-test.TIF")) { spotImage.ColorSpace = ColorSpace.CMYK; using (PixelCollection pc = spotImage.GetPixels(...
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: 9385

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: 9385

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: 9385

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: 9385

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: 15595

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: 15595

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: 15595

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: 11316

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: 11316

Re: Negate images on MagickNET

Okay I will wait .
If needed I can supply the images I'm using (testing purposes )
Thanks in advance