Hi all,
I am missing something. Just for an examply here is the part that is used in an existing skin file.
<!-- Skin background -->
<visual canstretch="true">
<pos x="0" y="0"/>
<size width="1920" height="1080"/>
<off shape="square" color="fonto"/>
</visual>
I am missing some underlying basics here. Where and how is this related to an PNG file? How does this work? There aren`t coordinate`s to a PNG file. Its more a basic question how the relationship with the PNG files are being maked and not about this specific canstretch visual.
gr. Marcel
I am missing something. Just for an examply here is the part that is used in an existing skin file.
<!-- Skin background -->
<visual canstretch="true">
<pos x="0" y="0"/>
<size width="1920" height="1080"/>
<off shape="square" color="fonto"/>
</visual>
I am missing some underlying basics here. Where and how is this related to an PNG file? How does this work? There aren`t coordinate`s to a PNG file. Its more a basic question how the relationship with the PNG files are being maked and not about this specific canstretch visual.
gr. Marcel
Posted Mon 29 Sep 25 @ 7:01 pm
Your code doesn't "link" to the png file
In order to do so, instead of <off shape="square" color="fonto"/> you would have to use something like <off x="0" y="450"/>
By giving x and y you give coordinates on WHERE on the PNG file to read the graphics.
You can read more here:
https://www.virtualdj.com/wiki/Skin%20SDK
Vector vs Raster graphics are explained a little better inside the "button" element.
https://www.virtualdj.com/wiki/Skin%20Button.html
In order to do so, instead of <off shape="square" color="fonto"/> you would have to use something like <off x="0" y="450"/>
By giving x and y you give coordinates on WHERE on the PNG file to read the graphics.
You can read more here:
https://www.virtualdj.com/wiki/Skin%20SDK
Vector vs Raster graphics are explained a little better inside the "button" element.
https://www.virtualdj.com/wiki/Skin%20Button.html
Posted Mon 29 Sep 25 @ 10:39 pm
Oke, but you point to 1 pixel in your png but;
- what programm is the advice to use to distract the X/Y coordinate for the item
- how does this work with a button (that is bigger than 1 pixel)
thnx
gr. Marcel
- what programm is the advice to use to distract the X/Y coordinate for the item
- how does this work with a button (that is bigger than 1 pixel)
thnx
gr. Marcel
Posted Fri 03 Oct 25 @ 3:07 pm
The XML code for a button defines it's size.
Then you give the coordinates of the top left pixel and VirtualDJ reads all the pixels that correspond to the defined width and height
Then you give the coordinates of the top left pixel and VirtualDJ reads all the pixels that correspond to the defined width and height
Posted Fri 03 Oct 25 @ 11:17 pm
ah that makes clear.
Thanks.
Thanks.
Posted Wed 08 Oct 25 @ 4:49 pm