![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
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 |
#2
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |