riwu
2012-11-22 02:56:13
The bitmap turned black (null) after dual conversion (which should theoretically get back the same bitmap)
(running this will result in unfreed bmp because i didn't assign a handler, to make things easier to see.)
program new;
{$I SRL/SRL.simba}
{$I SRL/SRL/Misc/debug.Simba}
var
Bmp, w, h: Integer;
begin
GetClientDimensions(w, h);
Bmp:= BitmapFromClient(0, 0, w/10, h/10);
DebugBitmap(Bmp);
wait(2000);
DebugBitmap(BitmapFromString(w/10, h/10, CreateBitmapString(Bmp)));
FreeBitmap(Bmp);
end.(running this will result in unfreed bmp because i didn't assign a handler, to make things easier to see.)