Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Support for tranparent png as key image (Read 2582 times)
Dan the Coder
YaBB Newbies
*
Offline


.NET and JS Dev

Posts: 6
Joined: Dec 18th, 2019
Support for tranparent png as key image
Dec 19th, 2019 at 7:31pm
Print Post  
Hello,

I am looking to replicate a button with rounded corners to create a nice look and feel to the keyboard. I have tried to use a CustomTemplate with a *.png file to get the look and the transparency is getting lost somewhere in the rendering. Is this the proper technique to use for this sort of look and feel?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3159
Joined: Oct 19th, 2005
Re: Support for tranparent png as key image
Reply #1 - Dec 20th, 2019 at 5:41am
Print Post  
Hi,

Key images are rendered on top of a rectangle drawn using keyboard.KeyTemplate.Background brush. Try setting it to a transparent color.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3159
Joined: Oct 19th, 2005
Re: Support for tranparent png as key image
Reply #2 - Dec 20th, 2019 at 9:36am
Print Post  
Hi,

This add CornerRadius property that lets you round the keys -
https://mindfusion.eu/_beta/rounded_keys.zip

Code
Select All
virtualKeyboard1.KeyTemplate.CornerRadius = 8;
 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Dan the Coder
YaBB Newbies
*
Offline


.NET and JS Dev

Posts: 6
Joined: Dec 18th, 2019
Re: Support for tranparent png as key image
Reply #3 - Dec 20th, 2019 at 7:34pm
Print Post  
I will try that, thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint