Lines Matching defs:format
95 // get the format of the BMP file to save, else use 24bpp
96 unsigned format = wxBMP_24BPP;
98 format = image->GetOptionInt(wxIMAGE_OPTION_BMP_FORMAT);
104 if ( (format == wxBMP_1BPP) || (format == wxBMP_1BPP_BW) )
109 else if ( format == wxBMP_4BPP )
114 else if ( (format == wxBMP_8BPP) || (format == wxBMP_8BPP_GREY) ||
115 (format == wxBMP_8BPP_RED) || (format == wxBMP_8BPP_PALETTE) )
118 if ((format == wxBMP_8BPP_PALETTE)
133 format = wxBMP_24BPP;
145 wxUint16 magic; // format magic, always 'BM'
231 if ( (format == wxBMP_1BPP) || (format == wxBMP_4BPP) ||
232 (format == wxBMP_8BPP) || (format == wxBMP_8BPP_PALETTE) )
235 if (format != wxBMP_8BPP_PALETTE)
270 else if ( (format == wxBMP_8BPP_GREY) || (format == wxBMP_8BPP_RED) ||
271 (format == wxBMP_1BPP_BW) )
278 wxUint8 c = (wxUint8)((i > 0) && (format == wxBMP_1BPP_BW) ? 255 : i);
318 if ( format == wxBMP_24BPP ) // 3 bytes per pixel red,green,blue
329 else if ((format == wxBMP_8BPP) || // 1 byte per pixel in color
330 (format == wxBMP_8BPP_PALETTE))
345 else if ( format == wxBMP_8BPP_GREY ) // 1 byte per pix, rgb ave to grey
355 else if ( format == wxBMP_8BPP_RED ) // 1 byte per pixel, red as greys
362 else if ( format == wxBMP_4BPP ) // 4 bpp in color
385 else if ( format == wxBMP_1BPP ) // 1 bpp in "color"
407 else if ( format == wxBMP_1BPP_BW ) // 1 bpp B&W colormap from red color ONLY
875 // read the header off the .BMP format file