Search found 69 matches
- 2017-03-21T20:09:40-07:00
- Forum: Magick.NET
- Topic: Combine 4 grayscale images into a final CMYK image
- Replies: 13
- Views: 26419
Re: Combine 4 grayscale images into a final CMYK image
Here's the tests i've done. Using MagickCollection (MagickNET) using (MagickImageCollection images = new MagickImageCollection()) { // Add the first image MagickImage first = new MagickImage(@"C:\DI_PLOT\Bitmaps\8FILES_IMPOSED_4UP_BACK.PDF (C)00.TIF"); images.Add(first); // Add the first i...
- 2017-03-18T20:12:51-07:00
- Forum: Magick.NET
- Topic: Combine 4 grayscale images into a final CMYK image
- Replies: 13
- Views: 26419
Re: Combine 4 grayscale images into a final CMYK image
You could use the Combine method of the MagickImageCollection for this. Only have a phone atm so I cannot easily create an example for you. This method works for RGB output only, as i could see. It has no mentions to a CMYK combining. The input is 4 files, output will be one file. Unless there's so...
- 2017-03-16T05:42:20-07:00
- Forum: Magick.NET
- Topic: Combine 4 grayscale images into a final CMYK image
- Replies: 13
- Views: 26419
Combine 4 grayscale images into a final CMYK image
Hello Everyone. Lemme explain my scenario. I have an old software, that takes 4 tiff images (grayscale), and combine them into a final CMYK colored image. I already know that each one of those images, corresponds to one color channel ex: image 1 - foo(c).TIFF image 2 - foo(m).TIFF and so goes on. I ...
- 2017-02-20T08:21:52-07:00
- Forum: Magick.NET
- Topic: How to process each pixel of the image maximally quickly?
- Replies: 15
- Views: 39640
Re: How to process each pixel of the image maximally quickly?
Just tried IvanShuvin solution. private static decimal inkGrayLevel(MagickImage img, bool inPercent = true) { decimal totalPixelValue = 0; decimal totalPixelValues = (img.Width * img.Height) * 255; int[] color = new int[3]; for(int y=0; y < img.Height; y++) { PixelCollection pc = img.GetPixels(); in...
- 2017-02-17T04:10:47-07:00
- Forum: Magick.NET
- Topic: How to process each pixel of the image maximally quickly?
- Replies: 15
- Views: 39640
Re: How to process each pixel of the image maximally quickly?
I need to scan each pixel of the image in order to get the BitMap Gray level. In the end, i created a function to do the job: private static decimal GetGrayLevel(Bitmap input, bool inPercent = true) { decimal totalPixelValue = 0; decimal totalPixelValues = (input.Width * input.Height) * 255; for (in...
- 2017-02-16T17:24:01-07:00
- Forum: Magick.NET
- Topic: How to process each pixel of the image maximally quickly?
- Replies: 15
- Views: 39640
Re: How to process each pixel of the image maximally quickly?
Image Width: 461 Image Height: 7370 Yeah, i just noted that i declared the array with the wrong size. But this wouldn't affect my issue, i think. What i want is a fast way to scan all image pixels using ImageMagick. The traditional way using System.Bitmap takes a minute or more for every image(and i...
- 2017-02-16T16:14:20-07:00
- Forum: Magick.NET
- Topic: How to process each pixel of the image maximally quickly?
- Replies: 15
- Views: 39640
Re: How to process each pixel of the image maximally quickly?
Sorry to revive this topic, but , any of you implemented this on the latest MagickNET release ? I'm getting a outofmemory exception. Here's what i tried to do - i tried to adapt his original solution: private static decimal inkGrayLevel(MagickImage img, bool inPercent = true) { decimal totalPixelVal...
- 2016-12-27T22:02:46-07:00
- Forum: Magick.NET
- Topic: clone a magickimage to a bigger one
- Replies: 1
- Views: 15255
clone a magickimage to a bigger one
ello everyone. I've searched a bit around the discussions\forums, but i couldn't find much information about how to achieve what i'm trying. Also, i don't see much Magick.NET documentation - where i could obtain it :) What i'm trying to do is: I have an very large MagickImage object (9920 width , 70...
- 2016-05-07T06:52:40-07:00
- Forum: Users
- Topic: Convert from PNG to TIFF
- Replies: 2
- Views: 3213
Convert from PNG to TIFF
Hello. It will be better if i explain my process from the beginning. I'm reading a file, that contains TIFF data. TIFF Header is 240 bytes - the header is like an default for any file, but some bytes (width, height, stripbytecounts) are replaced with its respective data on the process of the TIFF cr...