Android Question Help with Image please

werner_Fourie

Member
Licensed User
Longtime User
Hi All..

I have an image which represents a dial from x value to y value where the first part of the image is x and the last part of the image is y ..
What i want to do is by pressing an up or down button only the image part representing that setting must be displayed in a panel..

I think it has to to with sprites but I am not familiar on how it works..

Can any body please help..It would be much appreciated..

Thanks..
 

Attachments

  • PROONE2.png
    PROONE2.png
    20.7 KB · Views: 130

werner_Fourie

Member
Licensed User
Longtime User
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Upvote 0

kimstudio

Active Member
Licensed User
Longtime User
I used to use JKnobman in Windows programming. Usually you load the whole knob image and copy part of the image into your view. B4A Canvas.DrawBitmap does support SrcRect and DestRect, I believe you can just use it.
 
Upvote 0
Top