💾 Archived View for lofi.haiku-os.org › docs › develop › servers › app_server › ServerBitmap.gmi captured on 2024-08-25 at 00:21:54. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-09-28)
-=-=-=-=-=-=-
ServerBitmaps are the server side counterpart to BBitmap. Note that they are not allocated like other objects - the BitmapManager handles all allocation and deletion tasks.
1. Call _HandleSpace()
2. Call _HandleFlags()
3. Initialize remaining data members to parameters or safe values
Empty
Returns the bitmap’s buffer member
Returns the bitmap’s buffer member.
Returns bytes_per_row * height
returns BRect(width-1,height-1)
returns the bitmap’s bytes_per_row member
Large function which essentially consists of a switch() of the available color spaces and assigns the bits per pixel and bytes per line values based on the color space. If bytesperline is -1, the default is used, otherwise it uses the specified value.