Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using bmp_type = bitmap<rgb_pixel<16>>;
- uint8_t* bmp_buf = (uint8_t*)malloc(bmp_type::sizeof_buffer(bsz));
- if(bmp_buf==nullptr) {
- return (int)gfx_result::out_of_memory;
- }
- bmp_type bmp(bsz,bmp_buf);
- draw::text(bmp,(srect16)bmp.bounds(),{0,0},buf,f,scale,sfg,sbg,false);
- char n[64];
- generate_array(ident,itoa(cp,n,16),bmp_buf,bmp.size_bytes(),handle);
- free(bmp_buf);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement