nanogui: Rendering JPEG using microwindows APIs
Subject:
Re: Rendering JPEG using microwindows APIs
From:
"Greg Haerr" ####@####.####
Date:
28 Mar 2001 17:52:36 -0000
Message-Id: <014601c0b878$a3e739c0$3aba46a6@xmission.com>
: I am trying to use Win CE kind of APIs given by microwindows.
: How do I render a JPEG image to the main window?
:
: To load a bitmap, i.e. .bmp, I used DrawDIB() and it worked. I had to
: use "convbmp" first to create a ".c" file and then after compilation,
: the created ".o" file I used to link with the main c++ file. This
: worked. Now I want to display a ".jpg" file on screen.
Currently, there are two ways: either pre-convert the image
to .bmp format (you probably can't use this way) or take
the src/engine/devimage.c jpeg decode code and decode into
a client-side MWIMAGEHDR structure, which is very similar
to the server cached image structure. Then call DrawDIB().
Regards,
Greg