From: | Paul Burkey |
Date: | 14 Aug 99 at 05:52:37 |
Subject: | Re: Cybergraphics displays :( |
Oliver Marks wrote:
> > > I am trying to display a planar bitmap on cybergraphics screen i am
> > > converting the planar display to a chunky display and then trying to
> > > display it using writepixelarray it does not work can anyone tell what
> > > is wrong from the code below?
> >
> > You've got a bitmap and you've got a Window. Why not use BitmapToWindow
>
> I want the bitmap attached to the screen.
It depends what you mean by 'attached'. I would imagine attached means
to setup a pointer to your bitmap rather than to copy the contents of
the bitmap to the screen. The "ShowBitmap" command is a classic example
of the attached concept; it is also a good example of what doesn't work
with cybergraphx.
What I could tell from your source code (i didn`t examine it very much)
you had a Window and you had a regular Blitz bitmap. You were converting
the bitmap to a Mildred chunky bitmap and then you were using a CGFX
function to copy the mildred bitmap to your window.
This is exactly what BitmapToWindow would do. It will copy a bitmap
(also works with Blitz bitmaps) to a Window and it does all the
necessary
conversions for you, in this case it will convert the planar bitmap
to the chunky format of the Window - presuming the Window is on
a GFX card screen. The transparent planar to chunky conversion that
is done by CyberGraphX (and indeed Picasso96) is very fast, I doubt
you would get much speed gain by using a custom conversion unless
the speed issue was very important i.e. in a game or something. In
this case you would be wise to avoid planar in the first place.
> Does bitmaptowindow work with chunky bitmaps i assumed it would only
> work with planar bitmaps ?
As Curt mentioned, almost all of the Window functions work on a
GFX card and you can almost ignore the planar/chunky problems as
they are all handled for you.
Cheers,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie