Direct Bitmap Memory Access with VB.NET

OnErr0r

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

Attachments

Last edited by a moderator:
OnErr0r asked me to point out that the Resize Event might occur before Load, so this code could be altered:

Code:
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
 
Back
Top