News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

conversion of a "C" struct

Started by shankle, June 18, 2018, 05:24:31 AM

Previous topic - Next topic

shankle

                 6-17-2018

    BITMAPINFO structure
    I need to convert this "C" struct to a GoASm format:
   
       typedef struct tagBITMAPINFO {
         BITMAPINFOHEADER   bmiHeader;
         RGBQUAD            bmiColors[1];   ; only need black & white
       } BITMAPINFO, *pBITMAPINFO;       
      
   Thanks for any help.   

Yuri

It's already converted in the wingdi.h header file.

RGBQUAD STRUCT
    rgbBlue DB
    rgbGreen DB
    rgbRed DB
    rgbReserved DB
ENDS

BITMAPINFOHEADER STRUCT
    biSize DD
    biWidth DD
    biHeight DD
    biPlanes DW
    biBitCount DW
    biCompression DD
    biSizeImage DD
    biXPelsPerMeter DD
    biYPelsPerMeter DD
    biClrUsed DD
    biClrImportant DD
ENDS

BITMAPINFO STRUCT
    bmiHeader BITMAPINFOHEADER
    bmiColors RGBQUAD
ENDS