PDA

View Full Version : drawing on debugImage



fre
12-13-2016, 12:20 AM
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)


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

Citrus
12-13-2016, 01:29 AM
Something like this?

bmp := loadBitmap(...);
getBitmapSize(bmp, w, h);
findColorsBitmap(bmp, tpa, color);
drawTPABitmap(bmp, tpa, 255);
clearDebugImg();
displayDebugImgWindow(w, h);
drawBitmapDebugImg(bmp);
freeBitmap(bmp);