Results 1 to 2 of 2

Thread: drawing on debugImage

  1. #1
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default drawing on debugImage

    Hello everyone,

    i am trying for several hours now to draw on the debug Image without succes.
    I use the debug image for a static image of the client. (freezing the client is not an option)

    Simba Code:
    Bmp_Player := loadBitmap(ScriptPath + '\statsColor\' + Me.Name + '\' + Me.Activity + '.bmp');
      TargetBmp := setTargetBitmap(Bmp_Player);
      SetImageTarget(TargetBmp);
      //SetKeyMouseTarget(TargetBmp);
      GetBitmapSize(Bmp_Player, W, H);
      ImageSetClientArea(0, 0, W, H);
      gDebug.create(W, H);
      FindColorsBitmap(Bmp_Player, TPA, colorToDraw);
      gDebug.DrawTPA(TPA);
      FindColors(TPA, colorToDraw, 0, 0, W, H);
      gDebug.DrawTPA(TPA);

    So i took a bitmap from my player.
    I try to draw on that bitmap.
    No succes so far.

    Any help is appreciated
    ~Fre

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Something like this?
    Simba Code:
    bmp := loadBitmap(...);
    getBitmapSize(bmp, w, h);
    findColorsBitmap(bmp, tpa, color);
    drawTPABitmap(bmp, tpa, 255);
    clearDebugImg();
    displayDebugImgWindow(w, h);
    drawBitmapDebugImg(bmp);
    freeBitmap(bmp);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •