1ServerBitmap class 2################## 3 4ServerBitmaps are the server side counterpart to BBitmap. Note that they 5are not allocated like other objects - the BitmapManager handles all 6allocation and deletion tasks. 7 8Member Functions 9================ 10 11ServerBitmap(BRect r, color_space cspace, int32 flags, int32 bytesperrow=-1, screen_id screen=B_MAIN_SCREEN_ID) 12--------------------------------------------------------------------------------------------------------------- 13 141. Call \_HandleSpace() 152. Call \_HandleFlags() 163. Initialize remaining data members to parameters or safe values 17 18~ServerBitmap(void) 19------------------- 20 21Empty 22 23uint8 \*Bits(void) 24------------------ 25 26Returns the bitmap's buffer member 27 28area_id Area(void) 29------------------ 30 31Returns the bitmap's buffer member. 32 33uint32 BitsLength(void) 34----------------------- 35 36Returns bytes_per_row \* height 37 38BRect Bounds(void) 39------------------ 40 41returns BRect(width-1,height-1) 42 43int32 BytesPerRow(void) 44----------------------- 45 46returns the bitmap's bytes_per_row member 47 48void _HandleSpace(color_space cs, int32 bytesperline=-1) 49--------------------------------------------------------- 50 51Large function which essentially consists of a switch() of the available 52color spaces and assigns the bits per pixel and bytes per line values 53based on the color space. If bytesperline is -1, the default is used, 54otherwise it uses the specified value. 55 56