PDA

View Full Version : Map Viewer


evilworm2
27 Jul 2006, 18:19
Hi there. I am working on a program to organize and check maps.

You are able to:

- view maps
- zoom in/out
- organize map folder structure
- examine maps by...

...inverting the colors of a map excluding full (#000000) black.
Dark (almost black) pixels now turn white and you can see (and fix) them.

Plutonic
27 Jul 2006, 18:53
I would have to assume that a png using BYTES is an actual 256 colour palletted PNG, those with an int array are actually true-colour PNG's with only a small number of colours in them.

evilworm2
27 Jul 2006, 19:19
I would have to assume that a png using BYTES is an actual 256 colour palletted PNG, those with an int array are actually true-colour PNG's with only a small number of colours in them.

omg. absolutely right. this was the only thing i didīt see (and this is sooo obvious). thanks. :)

if anyone wants to know:

8 bit grayscale image can display 256 grayscales, a pixel is represented by a byte variable.

8 bit color image can display 256 colors that are specified in a lookup table (LUT), a pixel
is represented by a byte variable.

16 bit grayscale image can display 65,536 grayscales, a pixel is represented by a short
variable.

RGB color image can display 256 values per channel, a pixel is represented by an int
variable.

32 bit image floating point grayscale image, a pixel is represented by a float variable.

Muzer
27 Jul 2006, 20:03
I'll beta test!

Lex
27 Jul 2006, 21:20
Evilworm2, could you possibly implement .BIT support for this? :) I already have a nice .PNG map viewer. ;)

evilworm2
27 Jul 2006, 21:24
Evilworm2, could you possibly implement .BIT support for this?

This is on my todo list.

Lex
27 Jul 2006, 21:28
Wonderful! That's great then. :) If you need help with that, Annelid (http://forum.team17.co.uk/member.php?u=39789) is a good source for it.

Also, after implementing .BIT, you could easily implement .WAgame map viewing!

[UFP]Ghost
27 Jul 2006, 21:36
WAgame map viewing!

very good idea.

and if u do can u also add options for export map :) rather than having to lets say go to the replay and do it witha right click.

Muzer
28 Jul 2006, 10:46
So... can U pm me a link to beta test? Or is it not in that stage?

evilworm2
28 Jul 2006, 15:27
So... can U pm me a link to beta test? Or is it not in that stage?

Give me another night. ;)
I currently implement a warning mechanism which warns you about non-standard map propertys.
Like map too large, too much colors, this stuff...

This will be the most useful application i have written so far. ;)

Muzer
28 Jul 2006, 16:06
cool! Can't wait to try it!