You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drawing operations to bitmaps are not reflected in changes to bitmaps.
How to reproduce
Create a bitmap by calling create_bitmap(string,int,int), Attempt to draw upon the bitmap or attempt to clear the bitmap to a solid color, by calling clear_bitmap(bitmap, color).
For example:
#include "splashkit.h"
int main()
{
int width = 128;
int height = 256;
bitmap bmp = create_bitmap("mybmp", width, height);
//The colour blue
color c = rgba_color(0.0,0.0,1.0,1.0);
Experienced behaviour
Drawing operations are not reflected in bitmaps. For instance, calling clear_bitmap on a bitmap, fails to clear the bitmap to a solid color. Bitmaps when passed to draw_line_on_bitmap fail to result in lines being drawn to a bitmap.
Expected behaviour
Drawing operations are actually reflected in changes to bitmaps. For example, a bitmap passed to clear_bitmap(bitmap, color) would actually be cleared to a solid color. A line drawn upon a bitmap would appear on the bitmap if it is drawn to a window.
The text was updated successfully, but these errors were encountered:
Problem Description
Drawing operations to bitmaps are not reflected in changes to bitmaps.
How to reproduce
Create a bitmap by calling create_bitmap(string,int,int), Attempt to draw upon the bitmap or attempt to clear the bitmap to a solid color, by calling clear_bitmap(bitmap, color).
For example:
#include "splashkit.h"
int main()
{
int width = 128;
int height = 256;
bitmap bmp = create_bitmap("mybmp", width, height);
//The colour blue
color c = rgba_color(0.0,0.0,1.0,1.0);
clear_bitmap(bmp, c);
save_bitmap(bmp, "test");
delay(5000);
return 0;
}
Experienced behaviour
Drawing operations are not reflected in bitmaps. For instance, calling clear_bitmap on a bitmap, fails to clear the bitmap to a solid color. Bitmaps when passed to draw_line_on_bitmap fail to result in lines being drawn to a bitmap.
Expected behaviour
Drawing operations are actually reflected in changes to bitmaps. For example, a bitmap passed to clear_bitmap(bitmap, color) would actually be cleared to a solid color. A line drawn upon a bitmap would appear on the bitmap if it is drawn to a window.
The text was updated successfully, but these errors were encountered: