New Post: Resize cause an "Attempted to read or write protected memory"
I cannot reproduce your problem. But this might be related to the recently added OpenCL acceleration. Can you disable OpenCL with the this: 'MagickNET.UseOpenCL = false;' and try it again? Can you...
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
Hi, Now the exception is triggered at MagickNET.UseOpenCL = false; Here the log: System.AccessViolationException occurred _HResult=-2147467261 _message=Attempted to read or write protected memory. This...
View ArticleNew Post: CMYK to RGB for JPEG
Thanks. I agree the colors are closer but they are still off. I'm not looking for perfection but perceptibly correct would be nice. Is there really no way to convert these images to match?
View ArticleNew Post: CMYK to RGB for JPEG
You will never exactly match the colors. A bit more information can be found here: http://www.sant-media.co.uk/2010/06/color-management-for-beginners-profiles-explained/
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
Thank you very much for posting that dump but it seems you are using the AnyCPU version of Magick.NET. This is just a wrapper that loads either the x64 or the x86 version of Magick.NET. Could you...
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
Same thing with Magick.NET Q16-x64 System.AccessViolationException occurred _HResult=-2147467261 _message=Attempted to read or write protected memory. This is often an indication that other memory is...
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
You should set the Properties -> Build -> Platform target to x64 to get rid of that warning. And you should still get the same exception. And I hope that a dump created outside VisualStudio will...
View ArticleNew Post: Custom font from file.
It seems you can just specify the font with the file name. I was unaware that this was possible. The following code will use your font and draws some text on the image:using (MagickImage image = new...
View ArticleNew Post: Custom font from file.
Thank you VERY much. Sorry to bother you with that dumb question, when I saw the parameter for "family", I assumed it was for an installed font. I've got a couple more questions. The text appears to be...
View ArticleNew Post: Custom font from file.
You should take a look at the Drawable classes in the code completion of Visual Studio. And it will take a lot of trail and error :) Maybe you already found the following link on the documentation page...
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
Ok.. I forget to force the project use 64bits processor.. but i have the same problem... Here my test case:https://www.dropbox.com/s/2aisg3lxslty7b6/WindowsFormsApplication3.zip and here the...
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
I noticed you did not enable 'Enable native code debugging' in the properties of WindowsFormsApplication3. A dump without this does not provide me with enough information. Can you enable this and post...
View ArticleNew Post: Convert pdf to png in 64bit
Thanks. It's already working. We just have to reset the server.
View ArticleNew Post: Change DPI (resolution) but keep same size
Hi, I want ot upscale image DPI from 300 to 600 but at the same time I want to keep the image size otiginal (8.5*11), how can I do that? Any thoughts? Thank you.
View ArticleNew Post: Change DPI (resolution) but keep same size
You can change the DPI with the Resample method of MagickImage. The parameters are now described as width/height but it should be resolutionX and resolutionY. This will be changed in the next release....
View ArticleNew Post: How to draw a transparent rectangle at a specific location, on a...
Hi, I'm trying to draw a transparent rectangle on a specific image using the below code.privatestatic MagickImage ApplyWatermark(MagickImage image, string waterMarkText) { var backgroundOfWaterMark =...
View ArticleNew Post: How to draw a transparent rectangle at a specific location, on a...
The hex color notation also supports the alpha channel. Changing the color of backgroundOfWaterMark to "#FFFFFF80" should get you the color that you want. I will update the documentation to explain...
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
Here the link for dump with Enable native code debugging active:https://www.dropbox.com/s/t9me1f8vghvbqjo/dump.zip thanks
View ArticleNew Post: How to draw a transparent rectangle at a specific location, on a...
Thanks for a quick reply. I've changed the code as follows.var backgroundOfWaterMark = new MagickImage(new MagickColor("#FFFFFF80"), image.Width, 20) { Format = MagickFormat.Png };No luck. I still...
View ArticleNew Post: Resize cause an "Attempted to read or write protected memory"
I hope you are not starting to get sick of all my requests but I really want to fix this. This dump is not reporting an exception? It looks like you are on a breakpoint in Visual Studio. Feel free to...
View Article