Search found 76 matches

by pablobhz
2019-11-13T11:33:42-07:00
Forum: Magick.NET
Topic: Multiple text caption per Image
Replies: 6
Views: 1802

Re: Multiple text caption per Image

I don't use Magck.NET. I suggest you search this forum for examples, such as https://www.imagemagick.org/discourse-server/viewtopic.php?f=27&t=34606&p=158866&hilit=append#p158866 Thanks ! But i've figured out my solution. Here's my code, to help others later: var finalCollection = new MagickImageCo...
by pablobhz
2019-11-13T10:40:26-07:00
Forum: Magick.NET
Topic: Multiple text caption per Image
Replies: 6
Views: 1802

Re: Multiple text caption per Image

I do not know if this is relevant to your issue. But you can insert new line break "\n" into your text, if you want to put spacing between text in label: or make paragraphs in caption: Its relevant and i've found out it a few minutes ago - Thanks ! HOwever i'm drawing an coupon receipt ; can't use ...
by pablobhz
2019-11-13T09:53:20-07:00
Forum: Magick.NET
Topic: Multiple text caption per Image
Replies: 6
Views: 1802

Re: Multiple text caption per Image

"caption:" gives you a single image. You can do this multiple times to get multiple images. You can then combine these into a single image by appending or compositing them. I know about Composing and Combine (MagickCollection.Combine). How would i combine those multiple images ? I know i can't just...
by pablobhz
2019-11-13T09:29:16-07:00
Forum: Magick.NET
Topic: Multiple text caption per Image
Replies: 6
Views: 1802

Multiple text caption per Image

Hello Everyone. I was using Drawables to draw some text into an image - however, i'll need word wrap and based on what i've read, i can do that using captions. However, i can't seem to figure out how to specify an (x,y) offset for the text - this way i could have multiple captions per image and draw...
by pablobhz
2019-11-08T05:49:28-07:00
Forum: Magick.NET
Topic: Draw text into center(TextAlignment)
Replies: 1
Views: 1598

Draw text into center(TextAlignment)

Hello. I'm trying to draw some text in the center of an image, however, it never goes to the center ; stays on the left always. I would like to know what can i do. The only way i've found to center my text was using Gravity.Center and then calculating offset pixels. But since TextAlignment is there,...
by pablobhz
2019-10-29T06:55:28-07:00
Forum: Magick.NET
Topic: Create a valid image object from generated BMP File
Replies: 3
Views: 2089

Re: Create a valid image object from generated BMP File

You seem to think your input file has 600x1200 pixels. If each pixel takes 4 bytes, this would be 2880000 bytes. But your input Image-4158.bmp has fewer bytes. Incidentally, Image-4158.bmp is not a valid BMP file, so it is unwise to use a ".bmp" extension. When using the same code to generate a BMP...
by pablobhz
2019-10-29T06:18:17-07:00
Forum: Magick.NET
Topic: Create a valid image object from generated BMP File
Replies: 3
Views: 2089

Create a valid image object from generated BMP File

Hello Everyone. I'm dealing with a strange problem: I'm receiving an bmp file created trough an Android App - my final goal is to print it Before trying to create a MagickImage object, i do run trough all its bytes and adjust them. On the Android App the Bitmap is created using Bitmap.Config.ARGB_88...
by pablobhz
2019-09-14T14:57:37-07:00
Forum: Magick.NET
Topic: Creating a color palette from an specifc color
Replies: 2
Views: 4491

Re: Creating a color palette from an specifc color

Based on what i've read, this does exactly the job.
I'll supply a main color (RGB Values). Based on the amount of black or white on the destination pixel, it will change the range of this main color.

Do you know if MagickNEt has something equivalent of that ?
by pablobhz
2019-09-14T12:54:22-07:00
Forum: Magick.NET
Topic: Creating a color palette from an specifc color
Replies: 2
Views: 4491

Creating a color palette from an specifc color

Hello Everyone. Is MagickNET able to create a color palette from an specific color ? Ex: I have the following color: 231,49,0 (RGB). I would like to create a color palette based on this color. And then replace pixels accordingly. Ex: If the pixel is 0,0,0 , replace with the main color (pixel is tota...
by pablobhz
2019-03-01T11:30:49-07:00
Forum: Magick.NET
Topic: RAW Data length error (PixelStorageSettings issue)
Replies: 2
Views: 5299

Re: RAW Data length error (PixelStorageSettings issue)

Hmmm
So i can combine the four channels into a single image array and then read with the PixelStorageSettings ?
Nice ! I'll give it a try right now and i'll post here my results.
by pablobhz
2019-02-28T12:34:09-07:00
Forum: Magick.NET
Topic: RAW Data length error (PixelStorageSettings issue)
Replies: 2
Views: 5299

RAW Data length error (PixelStorageSettings issue)

Hello Everyone. I'm trying to create a new MagickIMage object from some raw CMYK Data. In order to do so, i'm creating some PixelStorageSettings (as i learned before somewhere else, i think on some MagickImage doc site). However, if i create the PixelStorageSettings with their original size, i get a...
by pablobhz
2019-02-28T10:15:58-07:00
Forum: Magick.NET
Topic: Combining images with MagickNET seems to miss the black channel
Replies: 1
Views: 4178

Combining images with MagickNET seems to miss the black channel

Hello Everyone. I am having a strange issue when combining images with MagickNET. Once before i used the same code to combine 4 negative images (each one representating an channel, CMYK) into a final colored image. However, now it seems to be missing the black channel on the final result. I've uploa...
by pablobhz
2019-02-03T21:10:26-07:00
Forum: Magick.NET
Topic: MagickNET and raw CMYK data
Replies: 5
Views: 5761

Re: MagickNET and raw CMYK data

You can use the PixelStorageSettings class for that. You can find an example in this recent issue: https://github.com/dlemstra/Magick.NET/issues/381 Thank you. It worked flawlessly. But how can i extract each channel from this PixelStorageSettings ? I can't create individual objects from each array...
by pablobhz
2019-02-02T22:16:57-07:00
Forum: Magick.NET
Topic: MagickNET and raw CMYK data
Replies: 5
Views: 5761

Re: MagickNET and raw CMYK data

Thats what i meant, sorry for the bad information.
No header, just pixels. Each pixel stored as an 8-Bit number.

I tried to read a byte array on this format and it didn't worked =(
Can MagickNet interpret it or only ImageMagick command-line version ?
by pablobhz
2019-02-02T21:30:01-07:00
Forum: Magick.NET
Topic: MagickNET and raw CMYK data
Replies: 5
Views: 5761

MagickNET and raw CMYK data

Hello
Does MagickNET offers support for reading RAW CMYK Image data ?
ex: I have raw binary for one channel (cyan). Is there a way for MagickNet or ImageMagick to read it ?

Thanks in advance