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
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
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.
> >
>
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
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
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
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
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
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/
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
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
> 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
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
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
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
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.
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
> -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
> 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
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
"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
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
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
> 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
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/
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
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
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
> 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
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
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
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
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
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
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
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
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
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/
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)
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
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
-
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
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
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
>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
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
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
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
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
49 matches
Mail list logo