function Picture_get_bitmap(This: Tvalue): Tvalue; cdecl;
var
real: TPicture;
begin
real := ap_data_get_struct(This);
result := ap_iBitmap(real.Bitmap, This);
end;
function Picture_set_bitmap(This, v: Tvalue): Tvalue; cdecl;
var
real: TPicture;
bitmap: TBitmap;
begin
real := ap_data_get_struct(This);
ap_data_get_object(v, TBitmap, bitmap);
real.Bitmap := bitmap;
result := v;
end;
procedure Init_Picture;
begin
DefineAttrGet(cPicture, 'bitmap', Picture_get_bitmap);
DefineAttrSet(cPicture, 'bitmap', Picture_set_bitmap);
end;