CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 43

Threaded View

  1. #27
    Join Date
    Mar 2007
    Location
    Argentina
    Posts
    579

    Re: Hotspots in .Net

    Quote Originally Posted by GremlinSA View Post
    Sorry Guy's ..

    Not quite sure what the hell happened there, Posted it the same way i always do ... however somehow i think something got Fed.. When i check the original zip on my system, it also gave errors..

    Heres a new zip .. (tested this time, and it does have everything in it ...) [.NET 2008 (2.0 Framework)]
    Just for fun, I wanted to copy each masked area to a new image.

    Found some code for fast copying, and adapted.

    But I can't copy back the masked images into picturebox. Just stuck in
    Code:
    Dim ms As MemoryStream = New MemoryStream(Array.ConvertAll(Source, New Converter(Of Int32, Byte)(Function(v As Int32) CByte(v))))
            Destiny = Image.FromStream(ms)
    (I found that code, and copied the above code.)

    There is no way the Image destiny can know the width, height, and PictureFormat to load that stream.

    Also tried to invert my packing code, but don't understand well how to marshall it (I put comments at the end of the routine.)
    Attached Files Attached Files
    [Vb.NET 2008 (ex Express)]

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured