Re: How to create bitmaps?

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Sat 05 Aug 2000 - 17:34:43 IDT


On Thu, 3 Aug 2000, Axel Spamann wrote:

> How do I create bitmaps that can be loaded into a svgalib-program and
> copied to the screen? I can do that with the bitmaps included with the
> demo-programs (e.g. linuxlogo.bmp). As I use 8bit (4bit) depth, I tried
> to create 8bit bitmaps with gimp, ImageMagick etc. but it does not work.
> What is the format of a bitmap (e.g. 1Byte for pixel x1,y1; 1Byte pixel
> x2,y1; ... 1Byte pixel xn,yn)? How to create some?

svgalib does not have any format for bitmap (whether in files or
memory). If you are using vgagl, you can use gl_putbox, and the format
is defined in the man page. If you do not use vgagl, you have to write
the functions to draw the bitmap, so you have to decide what format to
use.

-- 
Matan Ziv-Av.                         matan@svgalib.org


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST