|
So don't use them then. They're not supposed to be set programatically anyway. It's meant as a user selection device which means that you can pretty much do everything from the click event as any click automatically sets to checked.
|
|
|
|
|
Member 9082365 wrote: They're not supposed to be set programatically anyway
If I load existing selections, I damn well need to set the programmatically.
Marc
|
|
|
|
|
My goal is to get GIF files that can be handed over to a printer to print. Anyone who knows something about commercial printing is very welcome to reply! Now I am presuming that a commercial printer would be able to work with a GIF file, but if there is some other standard, I'm all ears.
I have a bunch of GIF files sized at about 10000 x 14000 that I used Paint.NET to produce from TIFF files (the GIFs are about 25M while the TIFFs are about 840M!) The original TIFF files were created by a scanner from thin, ink-printed plastic pieces, that had a few colors (i.e., like a cartoon). I haven't checked, but I presume that the although the original object was supposed to only have a few colors, that scanner picked up some slight variations of the few colors, and the GIF conversion process just fit whatever colors it detected into the 256-color map.
So I mainly want to get all the colors that are very close (i.e., all the colors that are really for the same original color) to get the same color, and to be mapped to color #1, #2, #3, etc. There is also some parts of these plastic pieces that are clear, so I figure that should be mapped to a color as well (color #0 maybe?) Now I know that the 32-bit BMP has an 8-bit part that signifies the level of transparency, but I am not sure how that would be done with a GIF. I can't seem to figure out how to do this in Paint.NET, but if it can be done, that would be great.
Thanks
|
|
|
|
|
While GIF doesn't support per-pixel alpha values, You can make palette entries entirely transparent or opaque, but it's only a 1bit flag - the pixel is there or it isn't. You should be able to make palette entries transparent with a menu option of some kind. Dunno, tried Paint.Net years ago and threw it out in preference of Gimp.
Also, for what it's worth, you'll get better compression with PNG, which uses the deflate compression scheme rather than the LZW one. As an example, the CP icon is a 4,795 byte gif. Converted to a png, its just 3,966 bytes. Depending on the material to be printed, you may also benefit from an image format that allows for colour-profiles to be embedded - important for accurate colour representation during print.
As for mapping the colours back to their original (desired) values, you may be able to posterize the image to the number of colours actually present. The final colour will be determined by the avg of the relevant pixels, so you should expect the colour to drift a little from the desired one. You can simply edit the palette after posterization such that it reflects the desired colours.
"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down 'happy'. They told me I didn't understand the assignment, and I told them they didn't understand life." - John Lennon
|
|
|
|
|
Use Paint.NET and save as PNG.
Select the 8-bit option when you are presented with a selection of bit depths for storing the image.
|
|
|
|
|
You could use IrfanView to convert the TIFFs. It's free, incredibly powerful, and has a batch mode. You should use PNG for your output files as has been stated. IrfanView has a 'Decrease Color Depth' command which will reduce the output size considerably.
What to do about the transparent areas is another matter, you'd have to do that part manually. PNG supports transparency.
Regards
Nelviticus
|
|
|
|
|
I would strongly suggest using 8-bit PNGs rather than GIFs as PNGs have better compression.
For converting TIFFs to 8-bit PNGs (or GIFs) you can use GIMP with the Save for Web plugin. This plugin allows you to customize how the 24-bit image is converted to 8-bit indexed color in many ways, such as choosing the type of dithering, number of colors, etc. while giving a realtime view of the resulting image and its filesize.
GIMP also lets you posterize the image before exporting it, in which case you can set exactly which colors will be used.
|
|
|
|
|
Excellent: very entertaining.
What was better were the previews for Star Wars and Batman v Superman. BvS looks AWESOMESOMESOMESOME!!! Oh, and I have no idea why, but people cheered and clapped at the Star Wars trailer and even I had a wee tear in my eye when Harrison Ford turns to Chewie and says "We're home...". Or maybe it was "we're back...". Well, you get the idea...
|
|
|
|
|
Poltergeist: "They're baaack"
SW: "We're home".
Marc
|
|
|
|
|
|
|
I wonder if poop is a shark repellent?
New version: WinHeist Version 2.1.1 new web site.
I know the voices in my head are not real but damn they come up with some good ideas!
|
|
|
|
|
In a way. He managed to convince the shark that he was not the seal it was looking for. Ask the shark which part of his behavior exactly made taking a test bite unnecessary.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
He was wearing a wetsuit, so would just have ended up with a swelling around the ankles.
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
Chris Quinn wrote: He was wearing a wetsuit, so would just have ended up with a swelling around the ankles.
I guess he would be full of it then?
New version: WinHeist Version 2.1.1 new web site.
I know the voices in my head are not real but damn they come up with some good ideas!
|
|
|
|
|
First, you are swimming in the ocean, looking for today's meal. Then you see something that might be a tasty fat seal and get a little closer, just to be sure. And then the seal starts kicking, punching, screaming and polluting the water. What manners!
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I've heard of stories where surfers punch a shark in the nose because that area is sensitive and throws them off. Kind of like a kick in the nuts.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."
-- Marcus Brigstocke, British Comedian
|
|
|
|
|
Try to jump before a van coming down the road with 30 mph and stop it by giving it a good smack on the hood. That is about the mass and speed of an attacking white shark and the van does not even try to bite. The surfer only survived because the shark was still trying to figure out what he was. He would have had no chance to fight off a serious attack.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Yes you're correct - if the shark is attacking he's toast. Otherwise you have a chance.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."
-- Marcus Brigstocke, British Comedian
|
|
|
|
|
|
Today is a good day for (the gov't spokes-being's career) to die?
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Every day is a good day for a politician to die!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Agree, but they are just so nocturnal.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Or as they would have it in the Cynulliad Cenedlaethol Cymru:
DaHjaj 'oH QaQ jaj Hegh politician
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
It is used because it is easier to understand than Welsh.
Once you lose your pride the rest is easy.
In the end, only three things matter: how much you loved, how gently you lived, and how gracefully you let go of things not meant for you. – Buddha
|
|
|
|