Search found 69 matches

by pablobhz
2017-04-11T14:41:28-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 25248

Re: Image composition

I don't use Magick.NET, but your code seems to composite finalImage over spotImage. I suspect you want this the other way round. Your command doesn't contain the keyword "-composite" so it won't do a composite. Yeah, that was incorrect. I inverted the command line, but, the result was the...
by pablobhz
2017-04-11T08:04:41-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 25248

Image composition

Hello everyone. I'm trying to composite one image on the top of the another. However, when i use the following code: using (MagickImage finalImage = new MagickImage("backgroundimage.png")) { using (MagickImage spotImage = new MagickImage("imagetocomposite.png")) { spotImage.Compo...
by pablobhz
2017-04-11T08:00:46-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 17365

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

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

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

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...
by pablobhz
2017-04-09T21:25:40-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 17365

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...
by pablobhz
2017-04-09T11:36:54-07:00
Forum: Magick.NET
Topic: Update PixelCollection
Replies: 0
Views: 17354

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....
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: 16731

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....
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: 16731

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

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 RG...
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: 16731

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

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

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)0...
by pablobhz
2017-04-02T07:40:46-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 24758

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)0...