[Moonlight-list] BitmapSource dimension
Tony Alexander Hild
tony_hild at yahoo.com
Tue Jul 21 01:46:58 EDT 2009
Hi,
I'm trying to implement the missing methods of WriteableBitmap, but I get stucked. Since WriteableBitmap must have a constructor public WriteableBitmap (BitmapSource source), I must know the dimension of source because WriteableBitmap permits pixel access. The current implementation, a pixel is accessed using Marshal.ReadInt32 direct on the indexer, but Silverlight 3 RTM change a little bit. Now, there is a property int[] Pixels.
Which the best way to cast from the buffer pointer to int[], due to security issues?
How can I get the dimension of a BitmapSource, since I have only the pointer to it? It seems that the implementation of BitmapSource is not complete.
Sorry about this silly question, but I started hacking moonlight yesterday only.
Tony
____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo..com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/moonlight-list/attachments/20090720/cece66bf/attachment.html
More information about the Moonlight-list
mailing list