B4J Question xRotaryKnob problem with custom knob image (chicken knob)

Marc De Loose

Member
Licensed User
Longtime User
Hi,

I am trying to use a chicken knob as image .
But when I run the code (just the demo code with my knob as cutomknom.

The knob smears as if the knob jeeps being drawn on top of one another. See image... this is after I moved the knob

Any ideas on how to fix this?
 

Marc De Loose

Member
Licensed User
Longtime User
Hi,

This is a mockup of what I am trying to achieve. The knops superimposed on an image like this. But your class seems to only work on perfect round custom images.
I attached the image of the chickenknob that I am trying to use in my project.

 

Attachments

  • chickenknob black.png
    3.2 KB · Views: 28
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Just a friendly reminder, this thread is a QUESTION about a problem with a Library, NOT a Library in itself, as the Thread Prefix leads to believe.
 
Upvote 0

Marc De Loose

Member
Licensed User
Longtime User
With the attached image it works as expected.
I set the background from transparent to white, and changed the orientation to left, geometric angle ZERO.
I was hoping to be able to use my knob background (see example windows build I made)
I have two knobs: the gain one with the problem and the Treble one with the white mask, working, but its covering my knop division background.

wetransfer link of the build: https://we.tl/t-qY3ooqJ33D
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Well, I see your problem, but this is not possible because everything is drawn onto one bitmap with one canvas.
To maintain the background, it would to modify the class by adding a second panel with a second canvas, to draw only the button.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…