Results 1 to 2 of 2

Thread: Retrieve Bitmap info

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Earth
    Posts
    171

    Retrieve Bitmap info

    Hi everybody,
    Well what I want really is to retrieve the bitmap information (The Header infos) of a .bmp file. Any help would be great,
    Thanks in advance

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    this:

    VB Code:
    1. Private Type BITMAPINFOHEADER '40 bytes
    2.         biSize As Long
    3.         biWidth As Long
    4.         biHeight As Long
    5.         biPlanes As Integer
    6.         biBitCount As Integer
    7.         biCompression As Long
    8.         biSizeImage As Long
    9.         biXPelsPerMeter As Long
    10.         biYPelsPerMeter As Long
    11.         biClrUsed As Long
    12.         biClrImportant As Long
    13. End Type
    14. Private Sub Form_Load()
    15. Dim BIH As BITMAPINFOHEADER
    16. Open "E:\YOURiMAGE.bmp" For Binary As #1
    17.     Get #1, 15, BIH
    18. Close #1
    19. MsgBox BIH.biHeight 'or any of the other things
    20. End Sub
    Remember, if someone's post was not helpful, you can always rate their post negatively .

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