Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetStaticArt

Return TBitmap object for static Art with ObjType and Hue. If Hue = 0, the art will be taken with original colors.

If char disconnected, or no uo data files loaded - return nil (for Python - empty buffer).

Pascal Syntax:

function GetStaticArt(ObjType : Cardinal; Hue : Word) : TBitmap;

Pascal Example:

var bmp : TBitmap;
begin
  bmp := Stealth.GetStaticArt(20, 0);
  if Assigned(bmp) then //uo data files loaded, and bitmap taken
  begin
    AddToSystemJournal('bmp= ',bmp);
    bmp.SaveToFile('StaticArt20.bmp');          
    bmp.Free;
  end;
end.

Python Syntax:

def GetStaticArtBitmap(Id, Hue): --> buffer with Bitmap file in bytes