New Post: Lock/Unlock bits emulation
dlemstra wrote: You are looking for the GetWritablePixels method of MagickImage. You will get a copy of the buffer in memory and not a pointer to the actual data. You might also want to took a look at...
View ArticleNew Post: Lock/Unlock bits emulation
You cannot directly access the memory of an image. You should use the Write method of the WritablePixelCollection to save the pixels. Would you mind explaining why you need access to those pixels?...
View ArticleNew Post: EPS Resize Pixelated
Honestly.... I'm not sure, I searched the web for some files to test with. As the AI is smooth and come with the EPS, then I assume yes! Do you have a test EPS?
View ArticleNew Post: Lock/Unlock bits emulation
I don't think so that copying data to the WritablePixelCollection, change it and then copying back - can provide maximum performance in my case. It would be great If I will be able to change data...
View ArticleNew Post: Lock/Unlock bits emulation
Would you mind answering my question and tell me why do you need access to the pixel buffer? What are you doing with those pixels? This is starting to feel like premature optimization. Copying memory...
View ArticleNew Post: EPS Resize Pixelated
You could use my logo's: https://magick.codeplex.com/SourceControl/latest#Logo/
View ArticleNew Post: Lock/Unlock bits emulation
dlemstra wrote: Would you mind answering my question and tell me why do you need access to the pixel buffer? What are you doing with those pixels? sure I can: for example I need to extract the alpha...
View ArticleNew Post: Lock/Unlock bits emulation
Dirk regarding WritablePixelCollection: how I can determine Stride and BitsPerPixel properties?
View ArticleNew Post: strokeColor in Magick Script
Thanks for the reply. I tried your version but the result is the same. The error : An unhandled exception of type 'System.StackOverflowException' occurred in Magick.NET.Wrapper-x86.dll My C# code...
View ArticleNew Post: strokeColor in Magick Script
Hello, I tried with the object annotate and the following XML works<msl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MagickScript.xsd"> <read>...
View ArticleNew Post: Error Reading Pages as PNGs with Byte Arrays
It's a byte array that gets initially instantiated via File.ReadAllBytes(string) with the string being the PDF location and stored in a database table via Entity Framework which handles BLOBs as byte...
View ArticleNew Post: Error Reading Pages as PNGs with Byte Arrays
The following solution produces the above error for me: https://www.dropbox.com/s/2uwk4kzbwj8zt0k/PDF%20Image%20with%20Byte%20Array.7z?dl=0
View ArticleNew Post: Lock/Unlock bits emulation
There is no stride in ImageMagick and the BitsPerPixel depends on if you are using the Q8 or the Q16 version of Magick.NET The Q8 version is 8bits per channel and Q16 is 16bits per channel. And with...
View ArticleNew Post: Memory allocation failed
We are running with max 16 threads simultaneously on Windows Server 2008. Normally we have about 3 GB ram free (10% of the 32GB physical ram).
View ArticleNew Post: Limit Memory
Is here any way to limit memory? There is an option in the main imagemagick project to limit memory I was wondering was it possible in this...
View ArticleNew Post: Lock/Unlock bits emulation
Dirk, thanks for your help! One more question: how can I determine PixelFormat of image?
View ArticleNew Post: Memory allocation failed
It really depends on the size of your image but it can take up a big amount of memory really fast. If only 3 GB is available for ImageMagick you might want to limit the memory usage to 2GB and use...
View ArticleNew Post: Limit Memory
You can use ResourceLimits.Memory for this. You need to specify the memory limit in bytes.
View ArticleNew Post: strokeColor in Magick Script
Thanks for coming back to the topic. My example probably works if you set 'fillColor' instead of 'strokeColor' also. And how did you resolve the stackoverflow problem?
View Article