Results 1 to 2 of 2

Thread: GetBitmapBits

  1. #1

    Thread Starter
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650

    GetBitmapBits

    I'm using the GetBitmapBits and SetBitmapBits functions that are in gdi32, and i'm confused. It causes an error during the GetBitmapBits function code. Well, her is my code:

    Private Sub mnuInvert_Click()
    Dim Pixels() As RGBTriplet
    Dim X As Integer
    Dim Y As Integer
    Dim Bits As Integer
    GetBitmapBits Picture1, Pixels, Bits
    With Pixels
    rgbRed = 255 - rgbRed
    rgbGreen = 255 - rgbGreen
    rgbBlue = 255 - rgbBlue
    End With

    (This is in a module)

    Public Type RGBTriplet
    rgbRed As Integer
    rgbGreen As Integer
    rgbBlue As Integer
    End Type

  2. #2
    jim mcnamara
    Guest
    See your thread in API.

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