Jump to content
adc

Osbot alternative to useDefaultPaint(false)?

Recommended Posts

As in the topic, how exactly do I go about disabling default paint in Osbot2? I can't seem to find a method for it in the API.

 

 

Also, onPaint is still the correct method in which to draw my paint, right? I've been having issues porting to Osbot2 regarding my paint simply not showing up, whereas it did in Osbot 1.8.15.

Link to comment
Share on other sites

public void onPaint(Graphics2D g) {
    Graphics2D gr = (Graphics2D) g;

}

Does your onPaint method looks like this? Because I had the same problem, and it was Graphics instead of Graphics2D, i think. I was watching osbot1 paint guide to make a paint for osbot v2, so situation is the same.

Edited by todamach
Link to comment
Share on other sites

public void onPaint(Graphics2D g) {
    Graphics2D gr = (Graphics2D) g;

}

Does your onPaint method looks like this? Because I had the same problem, and it was Graphics instead of Graphics2D, i think. I was watching osbot1 paint guide to make a paint for osbot v2, so situation is the same.

 

public void onPaint(Graphics2D gr) {
  

}

why not that? :P

 

  • Like 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...