[comp.sys.apple2] GS PALETTE AND 320/640 MODE

ISSLTC@NUSVM.BITNET (Lim Thye Chean) (06/10/91)

Thanks for the answer I got from my question of GS palettes. I have
actually does some work on them, and have some discoveries and surprise
here and there. Below are my story...

In order to solve the colour incompatibility between 320 and 640 mode,
I write a paint program, called GS Paint, with one aim: The picture
created in 320 or 640 mode must be able to convert the other mode,
WITHOUT ANY LOSS OR DISTORTION in colour details.

So the first thing I do is to design a set of palette which is almost
identical to 640 mode dithered palette. I means ALMOST because I really
hate some of the colours after dithering, like Red. So my 320 mode
palette have a much richer and nicer red. Besides, everything is identical.

The surprise comes in when I am designing the interface. No, I don't want
the GS to switch to 320-mode menu and dialog box when I am switching to
320-mode, just like all other paint programs. Instead, out of curiousity,
I remain the window and menu in 640 mode, and remapped line 13 to 200
to 320 modes. The result is fantastic and surprising. The shaston 8 fonts
is actually readable in 320 mode (although it is only half the size). And
it is also the same as for other fonts. Besides, I can use all DA's that
were designed with 640-mode in mind (like Control-Panel...I like the plane
that flies) with one exception: all of their colour becomes rich and
pretty.

It is no surprise if you know what is anti-aliasing, it is exactly the
opposite of dithering. In 640-mode, we use dithering to get more colour
at the expense of resolution. In 320-mode, we can actually get more
resolution at the expense of colours. Since the only colours that will
appeared correctly in 640-mode are black and white without dithered,
so we only need to anti-aliase black and white. When two pixels close
to each others are black and white, we can represent it as grey.

What is nice is that by using the palette as in 640-mode, the grey will
be at the exact location for anti-aliasing to occurs. So, no extra works
need to be done.

Now, in my beta version of my paint program, I can switch to any
resolution I want, without any distortion. Yes, the characters might be
a little blur at 320-mode, but they are readable. I plan to make the
part that do the palette conversion an NDA, so I can switch to 320-mode
while I am working on any 640-mode applications, that required little
text but lots of graphics (Page layout and AWGS graphics module for
example).

Anybody interested can mail me.


***********************************************************************
                      *** Apple IIGS Forever ***

 An Apple IIGS lover from Malaysia. A software engineer from Singapore.
-----------------------------------------------------------------------
                      Contact me at ISSLTC@NUSVM

       Lim Thye Chean - Lim is my surname. My name is Thye Chean.
***********************************************************************

andy@pro-palmtree.cts.com (Andy Stein) (06/12/91)

In-Reply-To: message from ISSLTC@NUSVM.BITNET

    That sounds really interesting, Thye.  Now, if only we could convert
320 mode pictures to 640 mode, without loss of details or colors.  It
really is useless to have a great digitzed picture in 320 mode when you
can't use it with a desktop publishing program or AppleWorks GS.  Couldn't 
AppleWorks GS or other 640 mode programs be modified to use 320 mode
graphics? I know El Kassir's Color Plus programs mixes 640 and 320 mode, so
couldn't AppleWorks GS use 320 mode for pictures and 640 mode for fonts,
line art, and text? Something's got to be done, because right now graphics
can't be used with the Apple IIGS in desktop publishing without an
amateurish look.  Higher resolution might help, but we need Apple's
cooperation here.  Has anyone heard about the program Second Chance, which
was advertised in Nibble, promising to convert 320 mode grey scale pictures
to 640 mode with no detail loss? I wonder if it does a decent job.

steve@pro-hindugods.cts.com (Steve Fenwick) (06/15/91)

In-Reply-To: message from andy@pro-palmtree.cts.com

If you're having problems with colors converting from 320 to 640, I'd try
GraphicWriter III.  If you import a graphic in 320 you'll be amazed at how
good it adjusts the colors.  Try it.

Steve

_____________________________________________________________________________
                                 |                                           |
ProLine: Steve@pro-hindugods     | Internet: Steve@pro-hindugods.cts.com     |
UUCP: crash!pro-hindugods!Steve  | ARPA: crash!pro-hindugods!Steve@nosc.mil  |
][ GS ][ GS ][ GS ][ GS ][ GS ][ GS ][ GS ][ GS ][ GS ][ GS ][ GS ][ GS ][ GS|