Re: Problem greyscale bitmaps in Constructor 1.5

2008-05-28 Thread Kelly J Perkins
Did you set the screen depth in your app as well? If not, try this for Palm OS 3.5 code: This is in my AppStart code: UInt32 newDepth = 2; // = 1, 2, 4, 8 - 2 is for 4 color, 4 is for 16 grays error = WinScreenMode(winScreenModeSet, NULL, NULL,&newDepth, NULL); It is a different call for

Greyscale

2008-05-28 Thread Mike Montalvo
I have a 'rolling graph' that I'd like to put greyscale tic marks on. As far as my understanding goes, greyscale isn't directly supported in the Palm OS. I'd like to be able to run my app without having to have ver 3.5. Is there any sample code or documents that explain

Re: Greyscale

2008-05-28 Thread Mike Montalvo
I set it to. TIA -Mike "Tom Zerucha" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Thu, Oct 26, 2000 at 09:44:32PM -0400, Mike Montalvo wrote: > > I have a 'rolling graph' that I'd like to put greyscale tic marks on. > > >

Re: Greyscale

2008-05-28 Thread Mike Montalvo
Ok, so I looked in the header files and figured out how to write directly to screen memory. I am able to draw 2 bit greyscale pixels. Here is my code: { UInt32 newDepth = 2; Err err = ScrDisplayMode (scrDisplayModeSet, NULL,NULL,&newDepth,NULL); WinHandle hWin = WinGetDrawWi

Re: greyscale in rgb565 colour format

2006-04-25 Thread Michal Seliga
for 5:6:5 just get average as you are used to (your n) and use only higher 5 (or 6) bits of it for each color [EMAIL PROTECTED] wrote: > Hello, > From theory I am assuming that in order to convert an image to its greyscale > values we get the red green and blue pixel values and find th

RE: greyscale in rgb565 colour format

2006-04-25 Thread Navin Dabhi
Hi, I think value is 153, 153, 153 for gray color. Thanks, Navin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 6:18 PM To: Palm Developer Forum Subject: greyscale in rgb565 colour format Hello, >F

greyscale in rgb565 colour format

2006-04-25 Thread becksticles
Hello, >From theory I am assuming that in order to convert an image to its greyscale >values we get the red green and blue pixel values and find the average and set >red, green and blue components to this average value. When using rgb565 >format images where pixel values can only

Re: Palm Vx greyscale image problem

2001-08-20 Thread Aaron Ardiri
lt;[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: greyscale On Mon, 20 Aug 2001 [EMAIL PROTECTED] wrote: > greyscale mode?? > not sure what you mean WinScreenMode() - dig the docs.. you'll find it --- what part dont you understand? download the docs and understand what you ar

Re: Palm Vx greyscale image problem

2001-08-20 Thread James . Kummer
Grayscale mode, are you talkin about on the Palm Vx or in constructor?? how do you put into grayscale mode on the Palm? Thanks, James Kummer -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Palm Vx greyscale image problem

2001-08-20 Thread Aaron Ardiri
On Mon, 20 Aug 2001 [EMAIL PROTECTED] wrote: > I've created a greyscale bitmap family for use in an application, but my > Palm Vx always resorts to using black and white -- it won't display grey. > However, I know that it's capable of grey. If I delete the 2-bi

Palm Vx greyscale image problem

2001-08-20 Thread James . Kummer
27;ve created a greyscale bitmap family for use in an application, but my Palm Vx always resorts to using black and white -- it won't display grey. However, I know that it's capable of grey. If I delete the 2-bit image from the family, the Vx just displays the

Re: prob. with greyscale images

2001-06-10 Thread Aaron Ardiri
> Hi, > > I have two greyscale bitmaps i'm trying to display in > my palm ap, but they aren't showing up. > > So I guess there's either something wrong with my > image format, how i'm specifying them in pilrc, or my > understanding of what the pa

prob. with greyscale images

2001-06-10 Thread Phun Lee
Hi, I have two greyscale bitmaps i'm trying to display in my palm ap, but they aren't showing up. So I guess there's either something wrong with my image format, how i'm specifying them in pilrc, or my understanding of what the palm os 3.5 can display. the specs for my im

PAL-File for converting greyscale BMPs

2001-05-20 Thread Jochen Hammer
Hi, I read a posting from Alan Ingleby where he answered some questions about converting greyscale bitmaps from windows to palm. He attached a uuencoded ZIP-File to his message consisting of two PAL-Files to be used in different graphic programs. Unfortunaltely i can "see" the cont

Re: 4 Bit greyscale in OS 3.5 and Constructor 1.5

2001-05-08 Thread Michael S. Davis
On Tue, 8 May 2001, DIAMOND JEFF wrote: > The way it's done now (correct me Heather) is to create a bitmap family and then >populate it with bitmaps of different depths. The OS > then picks the bitmap that matches the current graphics mode to display. Is the "display mode" selectable by the us

Re: 4 Bit greyscale in OS 3.5 and Constructor 1.5

2001-05-08 Thread DIAMOND JEFF
upported. Matt Becker wrote: > How can I get my 4bit greyscale bitmaps to display? The constructor docs tell of >/-1/ and /-2/ naming convention for 1 and 2 bit > bitmaps, but if I use /-4/ it wont compile. If I name a 4bit bitmap /-2/ it shows >up as a poorly redone 2bit bitmap.

Re: "Clean" but quick way to generate greyscale bitmaps on the fly?

2001-04-11 Thread DIAMOND JEFF
nvolve graphics acceleration. Ben Combee wrote: > "Tom Warfel" <[EMAIL PROTECTED]> wrote in message > news:45137@palm-dev-forum... > > > > Up until the latest version of the Palm OS Emulator, I've been able to > generate > > greyscale images on

RE: 4 Bit greyscale in OS 3.5 and Constructor 1.5

2001-04-11 Thread Heather KML Tufts
> -Original Message- > From: Matt Becker [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 09, 2001 9:21 AM > To: Palm Developer Forum > Subject: 4 Bit greyscale in OS 3.5 and Constructor 1.5 > > How can I get my 4bit greyscale bitmaps to display? The > construct

Re: "Clean" but quick way to generate greyscale bitmaps on the fly?

2001-04-10 Thread Ben Combee
> If it is bad to access an offscreen window that is created in video memory > verses > ram, then WinCreateOffscreenWindow() needs a parameter to specify where you > want the offscreen window to reside. I was mistaken. Upon reviewing the old messages on this topic (like http://groups.yahoo.com/g

Re: "Clean" but quick way to generate greyscale bitmaps on the fly?

2001-04-10 Thread Bill Kirby
At 01:30 AM 4/10/01 -0500, you wrote: >"Tom Warfel" <[EMAIL PROTECTED]> wrote in message >news:45137@palm-dev-forum... > > > > Up until the latest version of the Palm OS Emulator, I've been able to >generate > > greyscale images on the fl

Re: "Clean" but quick way to generate greyscale bitmaps on the fly?

2001-04-09 Thread Ben Combee
"Tom Warfel" <[EMAIL PROTECTED]> wrote in message news:45137@palm-dev-forum... > > Up until the latest version of the Palm OS Emulator, I've been able to generate > greyscale images on the fly by bit-twiddling in the data of an off-screen > window, then copyi

"Clean" but quick way to generate greyscale bitmaps on the fly?

2001-04-09 Thread Tom Warfel
Up until the latest version of the Palm OS Emulator, I've been able to generate greyscale images on the fly by bit-twiddling in the data of an off-screen window, then copying from that window to the screen. We're now getting messages from POSE (and in the 4.0 include files) that this

4 Bit greyscale in OS 3.5 and Constructor 1.5

2001-04-09 Thread Matt Becker
How can I get my 4bit greyscale bitmaps to display? The constructor docs tell of /-1/ and /-2/ naming convention for 1 and 2 bit bitmaps, but if I use /-4/ it wont compile. If I name a 4bit bitmap /-2/ it shows up as a poorly redone 2bit bitmap. I am running OS 3.5 , CW R7, and I have

Re: Greyscale

2000-10-29 Thread Aaron Ardiri
> Sorry. > > (was that consice enough?) dont take my words harshly :) the same issue has come up many times on the list - even people trying to get attachments back (vCards etc) i think, for the benefit of everyone, a set of posting "rules" should be made available - extra bandwidth doe

Re: Greyscale

2000-10-29 Thread Mike Montalvo
Sorry. (was that consice enough?) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Greyscale

2000-10-29 Thread Aaron Ardiri
hi! palm-dev-forum people: :P surely, it would be good to accept these guidelines when posting? can the list administrator look into this? a message in this thread was a whopping 40K! so much for thinking of our palm.net subscribers who read these messages. a) no attachments of an

Re: Greyscale

2000-10-28 Thread Mike Montalvo
Ok, so I looked in the header files and figured out how to write directly to screen memory. I am able to draw 2 bit greyscale pixels. Here is my code: { UInt32 newDepth = 2; Err err = ScrDisplayMode (scrDisplayModeSet, NULL,NULL,&newDepth,NULL); WinHandle hWin = WinGetDrawWi

Re: Greyscale

2000-10-28 Thread Tom Zerucha
On Sat, Oct 28, 2000 at 09:19:28AM -0400, Mike Montalvo wrote: > But how do I set the actual shade I want to draw in and how do I draw? Will > the standard draw functions work? Do I use WinDrawGrayLine or WinDrawLine? > Do I have to draw right to the screen memory? I usually do bitmaps so writ

Re: Greyscale

2000-10-28 Thread Aaron Ardiri
> I understand that. > > But how do I set the actual shade I want to draw in and how do I draw? Will > the standard draw functions work? Do I use WinDrawGrayLine or WinDrawLine? > Do I have to draw right to the screen memory? WinDrawLine = draw b+w line WinDrawGrayLine = draw dotted b+w li

Re: Greyscale

2000-10-28 Thread Mike Montalvo
I set it to. TIA -Mike "Tom Zerucha" <[EMAIL PROTECTED]> wrote in message news:28321@palm-dev-forum... > > On Thu, Oct 26, 2000 at 09:44:32PM -0400, Mike Montalvo wrote: > > I have a 'rolling graph' that I'd like to put greyscale tic marks on. > &g

Re: Greyscale

2000-10-27 Thread Tom Zerucha
On Thu, Oct 26, 2000 at 09:44:32PM -0400, Mike Montalvo wrote: > I have a 'rolling graph' that I'd like to put greyscale tic marks on. > > As far as my understanding goes, greyscale isn't directly supported in the > Palm OS. I'd like to be able to run my app

Greyscale

2000-10-26 Thread Mike Montalvo
I have a 'rolling graph' that I'd like to put greyscale tic marks on. As far as my understanding goes, greyscale isn't directly supported in the Palm OS. I'd like to be able to run my app without having to have ver 3.5. Is there any sample code or documents that exp

Re: Problem greyscale bitmaps in Constructor 1.5

2000-10-26 Thread Kelly J Perkins
Did you set the screen depth in your app as well? If not, try this for Palm OS 3.5 code: This is in my AppStart code: UInt32 newDepth = 2; // = 1, 2, 4, 8 - 2 is for 4 color, 4 is for 16 grays error = WinScreenMode(winScreenModeSet, NULL, NULL,&newDepth, NULL); It is a different call fo

Problem greyscale bitmaps in Constructor 1.5

2000-10-26 Thread Matt Becker
I see to have a problem with constructor. I draw a bitmap or import a bitmap into constructor, and when I compile and test the app, all my grey tones convert to black. Im using a PalmVx ROM. I set the color depth to 2bit in constructor for the image. Thanks in advance for your help.. Matt

Re: Greyscale picture

2000-10-03 Thread Jim Duffy
news:25751@palm-dev-forum... > > Please, > > can anybody point me to the right direction how to put 4-greyscale bitmap on > screen? > > Thanks > > Sandi > > [EMAIL PROTECTED] > > > > > -- For information on using the Palm Developer Forums, or to

Re: Greyscale picture

2000-10-03 Thread SK
I thought about 2 bit bitmap. How can I do that? Thanks Sandi "Tom Zerucha" <[EMAIL PROTECTED]> wrote in message news:25810@palm-dev-forum... > > On Thu, Sep 28, 2000 at 06:47:23PM +0200, SK wrote: > > Please, > > > > > can anybody point me to the ri

Re: Greyscale picture

2000-09-28 Thread Tom Zerucha
On Thu, Sep 28, 2000 at 06:47:23PM +0200, SK wrote: > Please, > > can anybody point me to the right direction how to put 4-greyscale bitmap on > screen? 4 bit (16 level) or 4 level (2 bit) grayscale? First you need to switch the device into the greyscale mode. 16 level bitmaps

Greyscale picture

2000-09-28 Thread SK
Please, can anybody point me to the right direction how to put 4-greyscale bitmap on screen? Thanks Sandi [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Switch out of greyscale mode for alarms etc ...

2000-07-07 Thread Chris Olson
My bad, the code works fine. I was just recreating the graphic filled form each time (cut & paste error!). Now another, related question. POSER is complaining about memory data structure access when I execute the following code: FormPtr formPtr; formPtr = FrmGetActiveForm(); if (formPtr)

Switch out of greyscale mode for alarms etc ...

2000-07-07 Thread Chris Olson
Ok, this one has me pulling out my hair ... I'm using OS3.5 for my application. I have color support on machines with color, and 4 color grey scale on those machines which do not. I use 'WinScreenMode' to put the device into grey scale mode on a 3.3 device. This is working just great. Then

Re: Greyscale UI problems

2000-04-14 Thread Bob Ebert
At 12:55 AM +0100 13-04-00, palm wrote: >By toying with the dragonball registers i am able to get the palm into 16 >greyscale mode. >this is no problem. Actually, this is exactly your problem. If you hack the registers directly, then there's no way for the rest of the OS to know

RE: Trouble with Greyscale

2000-04-13 Thread Jeff Allen
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jun-Kiat Lam Sent: Thursday, April 13, 2000 11:03 AM To: Palm Developer Forum Subject: Re: Trouble with Greyscale Jeff, To add a little bit to David Fedor's postif you need a pre-Palm OS 3.5 example to show to display grey

[Fwd: Greyscale UI problems]

2000-04-13 Thread Adam Wozniak
palm wrote: > By toying with the dragonball registers i am able to get the palm into > 16 > greyscale mode. > this is no problem. > > however when menus or the find dialog get shown, they are still drawn > onto > the old video memory. > do i have to copy this acro

Re: Trouble with Greyscale

2000-04-13 Thread Jun-Kiat Lam
Jeff, To add a little bit to David Fedor's postif you need a pre-Palm OS 3.5 example to show to display greyscale bitmaps, send me an email directly and I'll send it to you. Rgds, Jun-Kiat Lam Metrowerks Technical Support - Original Message - From: "Jeff Allen&quo

RE: Trouble with Greyscale

2000-04-13 Thread David Fedor
>Follow up question: > >Reading a little bit more, I have found information about how all apps are >1-bit by default, but that they can place themselves in 2 or 4 bits if >desired, giving access to greyscale. > >Okay, how do I do that? I assume it's something simpl

Greyscale UI problems

2000-04-12 Thread palm
By toying with the dragonball registers i am able to get the palm into 16 greyscale mode. this is no problem. however when menus or the find dialog get shown, they are still drawn onto the old video memory. do i have to copy this across onto my new video memory(bearing in mind it is originally

RE: Trouble with Greyscale

2000-04-12 Thread Jeff Allen
Follow up question: Reading a little bit more, I have found information about how all apps are 1-bit by default, but that they can place themselves in 2 or 4 bits if desired, giving access to greyscale. Okay, how do I do that? I assume it's something simple and I'm just

Trouble with Greyscale

2000-04-12 Thread Jeff Allen
Using Codewarrior 6 with the latest patch (for OS 3.5) Trying to add a 2-bit (4 color) greyscale bitmap to my application. Depending on how I do it, I get different strange results. If I just create the bitmap, any non-white areas get interpreted as black. If I make it part of a bitmap family

Greyscale - where to start?

2000-03-06 Thread Alastair Chisholm
Hi, I'd like to start developing greyscale applications. Can anyone give me a good place to start? Ideally any textbooks on the subject would be great, but websites or source code would also be appreciated. Currently I've been developing with GCC. Thanks, Alastair -- For info