Difference between revisions of "DebugBitmap"

From SCAR Divi Manual
Jump to: navigation, search
(Availability)
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
procedure DebugBitmap(const iBitmap: Integer);
+
procedure DebugBitmap(const Bmp: TSCARBitmap);
 
</source>
 
</source>
  
 
==Availability==
 
==Availability==
 
SCAR Divi 3.25 > Current
 
SCAR Divi 3.25 > Current
 +
 +
* Before 3.35, the bitmap was passed as an integer index parameter.
  
 
==Description==
 
==Description==
Shows the bitmap associated with the index '''iBitmap''' in the resource manager, in the debug window. If the index does not have a bitmap assigned to it, an error is thrown and the script stopped.
+
Shows the bitmap '''Bmp''' in the debug window. If the bitmap is not assigned, the function will throw an error.
  
 
==Example==
 
==Example==
 
<source lang="scar">
 
<source lang="scar">
 
var
 
var
   bmp: Integer;
+
   Bmp: TSCARBitmap;
  
 
begin
 
begin
   bmp := BitmapFromString(54, 37, 'beNp78uXpq69gtD6GwaLh5' +
+
   Bmp := TSCARBitmap.Create('deNozY1BlePrqKxitj2GwaDj5FcbFKkKMFPXR5VtvwWhlKIN' +
     'FcYF6sIMVLUR5dvvQWjlaEMpuW738K4qCK7Ww0YICB+GooUmDEHK' +
+
     'p+e63MC6qyO5WAwYIiJ+GIgVmzIHKGlSfQdJOdQS0CxMgOQPi1DnxYGcgu5CBwbB1K9QXaH6' +
     'mtQfQZJO9UR0C5MgOQMiFPnxIOdgexCBgbD1q1QX6D5keouxBGGi' +
+
     'kugtxhCEiAMEgfCV6GMJ0TQtnCJ0zUC6ERC6mYmRdZ8oNB8iF4KhETWPYpLB4hG4uRI1ojFg' +
     'AAEg/CV6GEI0zUtnCF0zkC5EBK5mIqRdZ0pNxwgF4KjEjWNYZPC4' +
+
     'ODTeFyNAyAKnoL1ohBtxgkLhw8IfhKBre6P+gByMhFj59+QVEg9yFt+48WLh862B2JNB5g9y' +
     'hG6uRA1ojFiOTTcFCJDywCkor9ohRhwg0HiwsEfhqNoeKP/gx6Mh' +
+
     'Fo+mQbulw6u66dcdXD+Z02LAuCojWHls9aEO7bnXUtkflQHL1URIcefzMLbqlw5rlUUtvpm1' +
    'Fj49OUXEA1yF96682Dh8q2D2ZFA5w1yF46mQ7qlw6m769YdXz2Y0' +
+
     '+VAJkrD5ErCPXb9xOt3RYuSRq7pX4vpPBa+7mAtmrDhLlyFVrNtItHZbOj5l1KabrSED7Xt+' +
     '2HDuiggWnts9aAN7brVUdselQPJ1UdJcOTxM7folg5rlkctvZm2+' +
+
     'FlxOA3BX71xDUtXrNxiu339IHFc+JnXAkqGG9b8M6EJp+IgIoQlAX2IXvKEGQdEiMyoJpiX2' +
    'VEJkLH6ELGOXL9xO93SYeWSqLlX4vtOBq+5mwtkrzpIlCNXrdlIt' +
+
     '7/VvX+gLR9CMhQO6yPesI6trSXX71zjtKECQdLl6xjaDKnEkp/TsC21f7Tt0fAmQv272BGPN' +
     '3RYOj9m1qWYriMB7Xt9F15OAHJX7F9DUNfqNRuv3H5LH1Q8J3bCk' +
+
     'vz8g9sqD32t33lKAlK7cDEUFl2X3pfZuDJu8OAzKW7dpEpOEf11aeaY29fu8DHVBGd9aE7WF' +
    'aCG9b4N60Bo+okIoAhBXWAXvqMEQdIhMSoLpiX27fZvXesLRNOPh' +
+
     'AcumOLcTr+rI09nCqxc37H8hGX77+AiJiVKZ25ALR0h1bSTL/1VT/QyVetx58xERoHWesaoD' +
     'AC5y/asI6hrS3f51TvvKEGQdLh4xTaCKnMmpfTvCGxf7Tt1fwiQv' +
+
     'oy7ffd+4+XL56By4FcNQwd+KSHdsJKkNDR/Iszy2bcfvhJ6wI7jxcCiBo+ZqdQIRfDdno3PK' +
     'Wz3BmLMvz0j98iC3mt331OClqzcDkQElWX3pfdtDpq8OwzIWLZrE' +
+
     'Zdx59xoOAzsOvgNbo3mNK0dfvv4GIcnNwoftPvlCIvn7/c/few9XrdlNuFFYEAA2abCM=');
     '5GGf1xbeaY19vq9D3RAGd1ZE7aHAcmlO7YQr+vL0tjDqRY3738gG' +
+
   DebugBitmap(Bmp);
    '335+guIiFGZ2pELREt3bCXJ/FdT/Q+VeN168BEToXWcsaoBoi/ff' +
 
     't+5+3D56h24FMBRw9yJS3ZsJ6gMDR3Jszy3bMbth5+wIrjzcCmAo' +
 
    'OVrdgIRfjVko3PLZ9559BkPAjoPvwJao3uPKUVfv/8GIsrNwYXuP' +
 
     '/lCIfr6/c/dew9Xr9tNuVFYEAAPpmvI');
 
   DebugBitmap(bmp);
 
 
end.
 
end.
 
</source>
 
</source>

Latest revision as of 01:57, 4 November 2012

Definition

procedure DebugBitmap(const Bmp: TSCARBitmap);

Availability

SCAR Divi 3.25 > Current

  • Before 3.35, the bitmap was passed as an integer index parameter.

Description

Shows the bitmap Bmp in the debug window. If the bitmap is not assigned, the function will throw an error.

Example

var
  Bmp: TSCARBitmap;

begin
  Bmp := TSCARBitmap.Create('deNozY1BlePrqKxitj2GwaDj5FcbFKkKMFPXR5VtvwWhlKIN' +
    'p+e63MC6qyO5WAwYIiJ+GIgVmzIHKGlSfQdJOdQS0CxMgOQPi1DnxYGcgu5CBwbB1K9QXaH6' +
    'kugtxhCEiAMEgfCV6GMJ0TQtnCJ0zUC6ERC6mYmRdZ8oNB8iF4KhETWPYpLB4hG4uRI1ojFg' +
    'ODTeFyNAyAKnoL1ohBtxgkLhw8IfhKBre6P+gByMhFj59+QVEg9yFt+48WLh862B2JNB5g9y' +
    'Fo+mQbulw6u66dcdXD+Z02LAuCojWHls9aEO7bnXUtkflQHL1URIcefzMLbqlw5rlUUtvpm1' +
    '+VAJkrD5ErCPXb9xOt3RYuSRq7pX4vpPBa+7mAtmrDhLlyFVrNtItHZbOj5l1KabrSED7Xt+' +
    'FlxOA3BX71xDUtXrNxiu339IHFc+JnXAkqGG9b8M6EJp+IgIoQlAX2IXvKEGQdEiMyoJpiX2' +
    '7/VvX+gLR9CMhQO6yPesI6trSXX71zjtKECQdLl6xjaDKnEkp/TsC21f7Tt0fAmQv272BGPN' +
    'vz8g9sqD32t33lKAlK7cDEUFl2X3pfZuDJu8OAzKW7dpEpOEf11aeaY29fu8DHVBGd9aE7WF' +
    'AcumOLcTr+rI09nCqxc37H8hGX77+AiJiVKZ25ALR0h1bSTL/1VT/QyVetx58xERoHWesaoD' +
    'oy7ffd+4+XL56By4FcNQwd+KSHdsJKkNDR/Iszy2bcfvhJ6wI7jxcCiBo+ZqdQIRfDdno3PK' +
    'Zdx59xoOAzsOvgNbo3mNK0dfvv4GIcnNwoftPvlCIvn7/c/few9XrdlNuFFYEAA2abCM=');
  DebugBitmap(Bmp);
end.

See Also