Results 1 to 3 of 3

Thread: Writablebitmap to byte array

  1. #1
    JayBird is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2011
    Posts
    2
    Reputation
    0

    Wink Writablebitmap to byte array

    Does anyone know a very simple way to convert a writeablebitmap to a byte array without to much fuss? I've read a lot on the net and everyone seems to go into so much code (mostly in c#) to do what looks to be such a simple operation? Either that or they link 4 or 5 reference links on how to write code to take over the world... I'm just looking for a nice simple solution please if anyone could help?

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,814
    Reputation
    1707
    There is no "nice simple solution". In order to provide the ability to be writeable, the class provides a thin veil between the managed type and the unmanaged memory underneath. If you want a Byte array then you have to create your own and then read the data from the unmanaged memory into it.

  3. #3
    JayBird is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2011
    Posts
    2
    Reputation
    0
    Thank you,

    Would you have an example of how I might do this in VB?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •