[Prev][Next][Index][Thread]
Re: win32 bitmaps question
-
To: info-dylan@ai.mit.edu
-
Subject: Re: win32 bitmaps question
-
From: kachinadtm@my-deja.com
-
Date: Mon, 3 Jan 2000 11:15:02 -0500 (EST)
-
Organization: Deja.com - Before you buy.
-
References: <84b86v$gh9$1@nnrp1.deja.com> <wkd7rpgr8x.fsf@double.co.nz>
-
Xref: traf.lcs.mit.edu comp.lang.dylan:11381
Thanks for your reply.
I hope everyone had a great new year.
In article <wkd7rpgr8x.fsf@double.co.nz>,
Chris Double <chris@double.co.nz> wrote:
> Harlequin Dylan 1.2 and versions prior to that had problems dealing
> with images and not all the functionality worked. Things like the
> macros for doing double buffering, etc would draw the images
> incorrectly.
>
> The HD 2.0 beta fixed those problems and for the cases where I was
> using the standard image functionality, things worked fine. I haevn't
> used the win32 image stuff though. What version of HD are you using?
I have the 2.0 beta release as well as the HD 1.2 Prof. The
examples provided don't seem to work at all under 2.0 beta (I am using
GNU's linker). Does it work under anyone else's 2.0b build? I'm not
double buffering, although this would be a good thing, but I have not
figured out how to do this yet... any documentation? Is this related
to the medium-foreground & medium-background functions?
> I think you'll probably need to write the bitmap reading functions
> yourself, or use a C library and use the c-ffi to access it. You can
> load the image and manipulate it using the Dylan image functions, or
> work with the Win32 API. If you can find something that loads a bitmap
> and gives you an HBITMAP to it, something like the functions below may
> allow you to blit it to Dylan panes (code copied, pasted and modified
> from a pre HD 1.2 application so it may not be needed with HD 2.0):
---- code snipped out ----
> You'll need to include the module win32-duim to get access to some of
> the duim internal stuff. If you need more info I can pop a toy project
> up for download if it would be useful.
I'll give the code a try. A 'toy' project on your web site would be a
good thing for the rest of the Dylan gang. Any resource like this IMHO
is a 'good thing' in general.
Thanks.
Les
> Chris.
> --
> http://www.double.co.nz/dylan
P.S.: I like your Dylan web site too. Its great to have some
additional resources for Dylan.
Sent via Deja.com http://www.deja.com/
Before you buy.