Ingreso rápido:  

Forum: VirtualDJ Skins

Tema: Atomixres: Skin Resize Utility

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

Hi there,

I got stuck with a 640x480 screen, no 640x480 available skins and not enough time to create a skin...

So I wrote this little program that will take a skin's XML file and modify all the x,y,width,height and font size values within it to fit a different resolution...
Once that's done you just have to resize the skin bitmap and that's it, you're done....

I offer no support for this, and you can take the source code and improve it if you like. But basically it did the job in a second for me, so I thought you guys might like it :)

All I ask is that if you do use it to resize skins you download that you make the skins available for all of us....
Hopefully we will soon have all the available skins in rez's from 640 to 1280 :)

the program:
http://www.scanlinez.org/atomixres/atomixres.exe

the code:
http://www.scanlinez.org/atomixres/atomixres.c

usage:
atomixres.exe infile outfile inres outres

infile The theme's XML file
outfile The output XML file to be created
inres The theme's current width in pixels
outres The theme's desired width in pixels


Enjoy :)
Andi Gordon
www.scanlinez.org - UK Cyber/Electronic
www.industry101.co.uk - DJing Site
 

Mensajes Mon 14 Oct 02 @ 2:39 am
Infact, I've put a 640x480 version of the default skin up on my site too...

It's XML file is an unmodified output from my little program.

It is not perfect, mostly with the round knobs where the co-ords seem to be out by one on each consecutive frame, but then I can't do everything for ya, especially not in 10 seconds flat :)

Anyway, for the hell of it:
http://www.scanlinez.org/atomixres/Default640.xml
http://www.scanlinez.org/atomixres/Default640.bmp

(I'm sure someone can tidy it up!!)

Andi
 

Mensajes Mon 14 Oct 02 @ 2:55 am
HomeboyPRO InfinitySupport ManagerMember since 2003
I have downloaded the exe file now what ?

.:DJ Homeboy:.
 

Mensajes Mon 14 Oct 02 @ 9:15 am
as it says above really....

here's an example for taking the default skin from 800x600 to 640x480.

1) copy "default.bmp" and "default.xml" from your atomix skins directory into a new directory. Here I'll use "c:skins"

2) open "default.bmp" in an image editor and resize it to be 640 wide and make sure that you maintain the image aspect ratio so that it is the correct height.
save it as "default640.bmp"

3) open a command prompt and type the following:

atomixres "c:skinsdefault.xml" "c:skinsdefault640.xml" 800 640

The file "default640.xml" will now be created and should have everything resized to fit into 640x480....

So you can now put "default640.xml" and "default640.bmp" in your atomix directory and use them.

This is not perfect, it's not designed to be. resizing images will not give you pixel perfect accuracy so there will be some minor display issues, but this program is designed to do 98% of the dog work for you.

From here you can tweak the settings to tidy things up a little....

hope that helps....
 

Mensajes Mon 14 Oct 02 @ 10:56 am
bugger, the HTML ate my slashes on the example filenames being passed into the program in the example above, so make sure you put them back in :)

andi
 

Mensajes Mon 14 Oct 02 @ 10:58 am
HomeboyPRO InfinitySupport ManagerMember since 2003
Yes sorry andi, I downloaded the .exe and when I opened it obviously nothing happened. Thanks for the instructions : )

.:DJ Homeboy:.
 

Mensajes Mon 14 Oct 02 @ 11:06 pm
Sure thing, let me know if you have any success using it...
 

Mensajes Tue 15 Oct 02 @ 11:18 am
àéìï ãééï äùåìè ùì øçåáåú
 

Mensajes Sat 19 Oct 02 @ 9:27 am
elan dayan asolat
 

Mensajes Sat 19 Oct 02 @ 9:28 am
ikkeHome userMember since 2003
I think the prog you wrote (source code) is nice done ;). Altough C# and System.Xml namespace could have been more easy.

Greetz, Ikke
 

Mensajes Sun 27 Oct 02 @ 5:18 pm
abnormPRO InfinityMember since 2003
It didn't work for me when I tried to resize a 1024 skin to 1280.
 

Mensajes Mon 28 Oct 02 @ 2:59 am
ara vais y lo cascais
 

Mensajes Sat 16 Nov 02 @ 10:27 pm
It's a really nice piece of code.. however, as you said it messes up the skin when rounding the coordinates and crunching those pixels down to size...
Any kind of antialiasing or whatever it's called would be nice to fix the graphical problems.. it would make it a bit softer/blurry but you'd have no stray pixels wandering about :)
 

Mensajes Wed 27 Nov 02 @ 8:24 am
CollinRHome userMember since 2006
Anybody got a new link to this?
 

Mensajes Fri 31 Mar 06 @ 7:47 pm


(Los tópicos y foros antiguos son automáticamente cerrados)