-
Notifications
You must be signed in to change notification settings - Fork 2
Bitmap
Loads and stores a Bitmap file. Data is stored in struct Pixel (4 Bytes).
Construct an empty bitmap object.
Construct a bitmap object and load the contents from filename.
Load contents from filename. Returns -1 on failure.
Write contents to file specified by filename. Returns -1 on failure.
Saves the pixel specified by x and y in parameter p. Returns -1 on failure.
Updates the pixel specified by x and y using p. Returns -1 on failure.
Copy the bitmap from internal storage to parameter buffer. maxsizes specifies the size of buffer.
Update the internal storage using data in parameter bmp. w specifies the width of the new image, h the height, bpp the number of bytes per pixel.
void getRangeOfBitmap( unsigned char * buffer, int maxsize, int min_x, int max_x, int min_y, int max_y )
Copy a quadratic area delimited by min_x, max_x, min_y, max_y from bitmap into parameter buffer. If the limits are out of bounds, 0 and width/height respectively are used as limits.
Returns the width of image
Returns the height of image
Returns the number of bytes per pixel