Results 1 to 7 of 7

Thread: [VB6] - the Graphics Class

Threaded View

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,966

    [VB6] - the Graphics Class

    hehehe
    only vb2010 have these class!?! naaaaaaaaaaaaaa.
    now i'm building a nice class that i want to share.
    for now these class do:
    1 - catch the image from any(i belive) device\control that have hdc property(but 100% sure on forms, pictureboxes and usercontrols);
    2 - have nice effects:
    - BackColor;
    - Transparent(you can choose the transparent color);
    - Mirror;
    - BlackAndWhite;
    - changing colors;
    - in time i will put the Rotation and more nice effects. accept advices;
    3 - you can draw it in any(i belive) device\control that have hdc property(but 100% sure on forms, pictureboxes and usercontrols). you can draw it on any position you like
    (the image size, i belive, is showed in pixels)
    and heres how use it:
    Code:
    Dim ImageData As Graphics
    
    Private Sub Command1_Click()
        Set ImageData = New Graphics
        ImageData.GetImageData Picture2
        ImageData.BackColor = vbBlue
        ImageData.Transparent = True
        ImageData.Mirror = HorizontalVertical
        ImageData.BlackAndWhite = True
        ImageData.DrawImageData Picture1, 40, 40 'the 40 and 40 is for tell the position;)
        Set ImageData = Nothing
    End Sub
    now the vb6 gamer programmers don't need use advanced stuff or API functions. because these class helps very much
    (class updated: 18/06/2012)
    Attached Files Attached Files
    Last edited by joaquim; Oct 5th, 2012 at 11:03 AM.
    VB6 2D Sprite control

    To live is difficult, but we do it.

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