Re: Safe ImageQuantization? - DOTNET
This is a discussion on Re: Safe ImageQuantization? - DOTNET ; 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 ...
-
Re: Safe ImageQuantization?
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@discussions.microsoft.com> wrote in message
news:E7E85E9D-E0C4-4D9E-89E4-D48D940C700A@microsoft.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
-
Re: Safe ImageQuantization?
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@discussions.microsoft.com> wrote in message
news:63DC085F-1BA6-4695-AAA2-BA1E7F5E0606@microsoft.com...
> 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@discussions.microsoft.com> wrote in message
>> news:E7E85E9D-E0C4-4D9E-89E4-D48D940C700A@microsoft.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
>>
>>
>>
Similar Threads
-
By Application Development in forum Perl
Replies: 4
Last Post: 08-25-2007, 05:23 AM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 04-20-2007, 02:34 AM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 04-17-2007, 04:41 AM
-
By Application Development in forum c++
Replies: 6
Last Post: 02-13-2007, 07:32 AM
-
By Application Development in forum DOTNET
Replies: 2
Last Post: 01-18-2007, 11:17 AM