HighTechTalks DotNet Forums  

Re: Safe ImageQuantization?

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss Re: Safe ImageQuantization? in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Michael Phillips, Jr.
 
Posts: n/a

Default Re: Safe ImageQuantization? - 01-15-2007 , 09:44 AM






You do not need to use unmanaged pointers to read and/or write pixels.

You can adapt the code to use the System.InteropServices.Marshal.Write
methods along with the use of managed IntPtr's.

Bob Powell has examples in both c# and vb that make use of this technique.

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm


"Manso" <Manso (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

We're struggling with finding a image quantization library that is safe
and
usable in a medium trust environment. We've used Brendan's brilliant
ImageQuantization library
(http://codebetter.com/blogs/brendan....1/26/6103.aspx)
but we now need to move to a medium trust environment and his library is
using unmanaged pointers which requires full trust.

Does anyone have any idea if it's doable, if anyone has done it already or
if there are any commecial libraries that can do it which also run under
medium trust?

Thanks,
Manso



Reply With Quote
  #2  
Old   
Michael Phillips, Jr.
 
Posts: n/a

Default Re: Safe ImageQuantization? - 01-15-2007 , 10:23 AM






I am not aware of any libraries with safe Marshaling. Adapting the code is
easy. It should not take you too long to get a working Marshaled version.


"Manso" <Manso (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

Thanks for your reply. Are you aware of any quantization libraries which
have implemented it already using marshalling so we don't have to reinvent
the wheel over here?

I find it weird that there is no framework support for this already.
Everyone doing any form of image processing which involves GIF must have
this
problem.

Thanks,
- Manso

"Michael Phillips, Jr." wrote:

You do not need to use unmanaged pointers to read and/or write pixels.

You can adapt the code to use the System.InteropServices.Marshal.Write
methods along with the use of managed IntPtr's.

Bob Powell has examples in both c# and vb that make use of this
technique.

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm


"Manso" <Manso (AT) discussions (DOT) microsoft.com> wrote in message
news:E7E85E9D-E0C4-4D9E-89E4-D48D940C700A (AT) microsoft (DOT) com...
Hi,

We're struggling with finding a image quantization library that is safe
and
usable in a medium trust environment. We've used Brendan's brilliant
ImageQuantization library
(http://codebetter.com/blogs/brendan....1/26/6103.aspx)
but we now need to move to a medium trust environment and his library
is
using unmanaged pointers which requires full trust.

Does anyone have any idea if it's doable, if anyone has done it already
or
if there are any commecial libraries that can do it which also run
under
medium trust?

Thanks,
Manso






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.