User Profile

Collapse

Profile Sidebar

Collapse
vbdog
vbdog
Last Activity: Apr 26 '07, 07:25 PM
Joined: Apr 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vbdog
    replied to Drawing in a picture box
    in .NET
    Fixed Now thanks
    See more | Go to post

    Leave a comment:


  • vbdog
    replied to Drawing in a picture box
    in .NET
    Just change the code below but it just draws a pixel then clears the pixel then draws another then clears and so on

    Code:
    Dim m_imageList As ImageList
    m_imageList = New ImageList
    m_imageList.ImageSize = New Size(110, 42) 'Change to whatever size you are needing
    Dim bmp As New Bitmap(110, 42, Drawing.Imaging.PixelFormat.Format32bppArgb)
    Dim g As Graphics
    g = Graphics.FromImage(bmp)
    bmp.CreateGraphics.DrawLine(.......stuff
    ...
    See more | Go to post

    Leave a comment:


  • vbdog
    started a topic Drawing in a picture box
    in .NET

    Drawing in a picture box

    Iam calling the sub below a number of times until the picture is drawn. But when i Minimized the form the drawing clears.

    can anyboddy help please.
    Code:
    Sub drawscreen()
    
    Dim g As Graphics
    Dim bmap As Bitmap
    bmap = New Bitmap(picgame.Width, picgame.Height, _
    picgame.CreateGraphics)
    
    g = Graphics.FromImage(bmap)
    
    Dim p As New Point()
    p.X = 1 + x + (i * 4)
    ...
    See more | Go to post

  • vbdog
    replied to convert the vb6 code below into vb.net code
    in .NET
    Thanks I will have a go at that...
    See more | Go to post

    Leave a comment:


  • vbdog
    started a topic convert the vb6 code below into vb.net code
    in .NET

    convert the vb6 code below into vb.net code

    Hi I am trying to convert the vb6 code below into vb.net code can anyboddy help
    The vb6 code is from a chip8 Emulator that somboddy wrote.

    vb6 code
    this function keeps getting called until the image is drawn.
    Sub drawscreen()
    If Picture1.Point( 1 + x + (i * 4), y + (j * 4)) = RGB(0, 255, 0) Then
    v(&HF) = 1
    Picture1.Line (1 + x + (i * 4), y + (j * 4))-(1 +...
    See more | Go to post
No activity results to display
Show More
Working...