Re: colors are slightly off importing gifs and bmps
From: Alex Feinman [MVP] (public_news_at_alexfeinman.com)
Date: 04/22/04
- Next message: Marcos Fernández: "Re: Problem using NetworkCredentials"
- Previous message: Roger: "Re: RAS & .NET CF"
- In reply to: Joshua Moore: "Re: colors are slightly off importing gifs and bmps"
- Next in thread: Geoff Schwab: "Re: colors are slightly off importing gifs and bmps"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 23:12:44 -0700
Since the problem is clearly in pixel format not matching what you have on
the device, I wonder if you'd do a little experimet for me. I've put
together a small desktop application, that can load an image and save it in
RGB555 format. Could you try opening one of your images and saving it (with
different name of course), then looking at it both on the desktop and the
device?
http://www.alexfeinman.com/download.asp?doc=BitmapApp.zip
You can of course modify the app to try different pixel formats and image
disk formats
-- Alex Feinman --- Visit http://www.opennetcf.org "Joshua Moore" <glamiac@msn.com> wrote in message news:OJQCSS%23JEHA.208@tk2msftngp13.phx.gbl... > Is there any way to save the file in a format that would create identical > colors? The artist says it wouldn't take much time to save them in > different formats, etc., but I tried it as a 16-bit color (the viewsonic > device claims 15 bit color), hoping that would be close enough, but no go. > Any ideas? > > Thanks, > > "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message > news:eKnLsg9JEHA.2884@TK2MSFTNGP12.phx.gbl... > > If you tried to bit shift each pixel in your image, on demand, then this > > could cause your application to slow down to a point noticeable by the > > end-user, depending on how many images you need and how large they might > be. > > I believe what Geoff was trying to say is that you will need to shift > every > > R, G, and B value for every pixel 3 places using the bit shift operator (R > > >> 3, G >> 3, B >> 3). You might want to just, if possible, modify the > > images until they render in a respectable manner through the CF - this is > > what Boris ended up doing. > > > > There is some more information in the thread linked below about what might > > actually be going on inside the CF to cause this behavior, if you're > > interested. > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=280d8e76e3da4a5e&seekm=e0%23SQNbEDHA.2100%40TK2MSFTNGP12.phx.gbl&frame=off > > > > -- > > Tim Wilson > > .Net Compact Framework MVP > > {cf147fdf-893d-4a88-b258-22f68a3dbc6a} > > "Joshua Moore" <glamiac@msn.com> wrote in message > > news:O2eqlU9JEHA.2012@TK2MSFTNGP11.phx.gbl... > > > Tim, > > > In the conversation below, they found you could right shift by 3 to > > get > > > the right color, but I don't know what this means. Is that if you have > > R25 > > > G25 B25 your imported graphics should be R22 G22 B22? > > > > > > Thanks in advance (in ship mode...need to fix this soon), > > > Joshua Moore > > > > > > > Hi Boris, > > > > > > > > This is simply not possible due to the limitations of the hardware. > > > > Remember that you are taking a bitmap that you have viewed on a > display > > > > capable of displaying 24, and most likely 32 bit images and putting it > > on > > > a > > > > device that is only capable of displaying 16 bit graphics. Just be > > > thankful > > > > you are not working on a video game system that has to display it on > an > > > NTSC > > > > screen! > > > > > > > > When the pixels are converted, they are "rounded down" so if you want > to > > > > preview the graphics on the desktop then take each pixel color and > round > > > it > > > > off like it will be on the device. Most devices are 555 RGB formatted > > so > > > if > > > > you take each pixel, break into R,G, and B components, then right > shift > > by > > > 3 > > > > you should see something more similar to what it will be on the > device. > > > "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in > message > > > news:OLqQQP9JEHA.3316@tk2msftngp13.phx.gbl... > > > > A link to the conversation that I think you are referring to is > included > > > > below, but I'm not sure if there's a nice workaround to this issue > yet. > > > > > > > > > > http://www.google.ca/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=42cb6d886bc021ed&seekm=o0r2j1azu7bi.2jq0o2jd3xwj.dlg%4040tude.net&frame=off > > > > > > > > -- > > > > Tim Wilson > > > > .Net Compact Framework MVP > > > > {cf147fdf-893d-4a88-b258-22f68a3dbc6a} > > > > "Joshua Moore" <glamiac@msn.com> wrote in message > > > > news:ONohR28JEHA.2888@TK2MSFTNGP09.phx.gbl... > > > > > I know this has been addressed before, but I can't find it. I'm > using > > > > > identical RGB values for colors, on the background color on the > .netcf > > > > > device, and on the images (both gif and bmp) imported. Something > > about > > > 3 > > > > > shifted ring a bell to anyone? > > > > > > > > > > Thanks in advance, > > > > > > > > > > Joshua Moore > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
- Next message: Marcos Fernández: "Re: Problem using NetworkCredentials"
- Previous message: Roger: "Re: RAS & .NET CF"
- In reply to: Joshua Moore: "Re: colors are slightly off importing gifs and bmps"
- Next in thread: Geoff Schwab: "Re: colors are slightly off importing gifs and bmps"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|