Direct Bitmap Memory Access with VB.NET

OnErr0r

Newcomer
Joined
Jul 21, 2003
Location
Debug Window
This sample creates a 32bit bitmap from Array data. Changes in the array data are seen when the bitmap is drawn. I've been hearing this is not possible with VB, but I guess it is. :)
 

Attachments

  • triangle.zip
    8.7 KB · Views: 264
Last edited by a moderator:

divil

Ultimate Contributor
Joined
Nov 17, 2002
Location
England
OnErr0r asked me to point out that the Resize Event might occur before Load, so this code could be altered:

Visual Basic:
Private Sub frmTriangle_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
    If Not Triangle Is Nothing then
        If ClientSize.Height > 10 Then Triangle.Create(ClientSize.Width, ClientSize.Height)
    End if
End Sub
 
Top Bottom