nanogui: how to use Fl_Pixmap to load a image from file


Previous by date: 26 Sep 2002 05:12:14 -0000 Re: how to use Fl_Pixmap to load a image from file, xgzhang
Next by date: 26 Sep 2002 05:12:14 -0000 Re: rotate 90 degree in nano-X, Greg Haerr
Previous in thread: 26 Sep 2002 05:12:14 -0000 Re: how to use Fl_Pixmap to load a image from file, xgzhang
Next in thread:

Subject: Fw: [nanogui] how to use Fl_Pixmap to load a image from file
From: "Seol,Keun-Seok" ####@####.####
Date: 26 Sep 2002 05:12:14 -0000
Message-Id: <007901c2651a$fb205370$c800a8c0@inno2000>

Files are too big to send it to this group.
Below is my answer to "Counter Wei".

===================================================================================
Seol,Keun-Seok.      innoPLUS Co., Ltd.(http://www.innoplus.com)
Room 305, Business Incubator,
The Corporation Center of Edu. & Res. for Univ. Res. Institutes and Industrial Companies.
Chungnam National University, 220, Gung-Dong, Yuseong-Gu, DaeJeon, S.Korea
####@####.#### ####@####.####
Tel:+82-42-822-1325  Fax:+82-42-822-0870 PCS:+82-16-462-8498
===================================================================================
? ??.              ?) ????? (http://www.innoplus.com)
??? ??? ?? 220?? ??? ??? ????? ????? 305?(???? 305-764)
===================================================================================
----- Original Message ----- 
From: "Seol,Keun-Seok" ####@####.####
To: "Counter Wei" ####@####.####
Cc: ####@####.####
Sent: Thursday, September 26, 2002 2:04 PM
Subject: Re: [nanogui] how to use Fl_Pixmap to load a image from file


> Hi,
> 
> when i tried to use Fl_Pixmap under flnx, it didn't work.
> So, i created Fl_PixmapFile to draw a pixmap image.
> 
> pixmap.cxx has a sample code to use Fl_PixmapFile.
> 
> Attached files are my hack to draw bitmap/pixmap image under flnx,
> but it has some limitations which i can't remember.
> (You can olny draw "0RGB" image.)
> define  "PIXMAP_HACK" to enable it.
> 
> I have not tried to draw gif image under flnx, but if you could acquire
> raw RGB data using some other graphic library, you can draw it using Fl_Image.
> 
> I throughly tested only Fl_PixmapFile, so other files can have a bug(for example, memory leak) and speed limitation.
> 
> If you (or any one) could make any improvement on my hack, please let me know it.
> 
> Regards,
> Seol.
> 
>           "WARNING: SAVE YOUR SOURCE TREE BEFORE APPLY IT."
> 
> P.S. microwindows allow pixmap file to have only 300 chars per line.
>      If you want to allow more chars per line, modify the engine/devimage.c.
>      Following is a guide.
> 
>         LoadXPM(..)
>         {
>         ......
>         xline[xxx]; 
>         dline[xxx]; 
>         ......
>         bgets(src, xline, xxx);
>         ......
>         bgets(src, xline, xxx);
>         ......
>         }
> 
> ===================================================================================
> Seol,Keun-Seok.      innoPLUS Co., Ltd.(http://www.innoplus.com)
> Room 305, Business Incubator,
> The Corporation Center of Edu. & Res. for Univ. Res. Institutes and Industrial Companies.
> Chungnam National University, 220, Gung-Dong, Yuseong-Gu, DaeJeon, S.Korea
> ####@####.#### ####@####.####
> Tel:+82-42-822-1325  Fax:+82-42-822-0870 PCS:+82-16-462-8498
> ===================================================================================
> ? ??.              ?) ????? (http://www.innoplus.com)
> ??? ??? ?? 220?? ??? ??? ????? ????? 305?(???? 305-764)
> ===================================================================================
> ----- Original Message ----- 
> From: "Counter Wei" ####@####.####
> To: "Seol,Keun-Seok" ####@####.####
> Sent: Thursday, September 26, 2002 12:59 PM
> Subject: Re: [nanogui] how to use Fl_Pixmap to load a image from file
> 
> 
> > Hi,
> >   thanks for ur help.
> >   but i dont know how to created   a Fl_ PixmapFile ,
> >   can u send me some sample code .
> >   if i want to load a bmp/gif from file under flnx by Fl_Image,how to do it?
> >    thanks again.
> >     best regards
> >           counter
> > 
> 

[Content type application/x-gzip not shown. Download]

Previous by date: 26 Sep 2002 05:12:14 -0000 Re: how to use Fl_Pixmap to load a image from file, xgzhang
Next by date: 26 Sep 2002 05:12:14 -0000 Re: rotate 90 degree in nano-X, Greg Haerr
Previous in thread: 26 Sep 2002 05:12:14 -0000 Re: how to use Fl_Pixmap to load a image from file, xgzhang
Next in thread:


Powered by ezmlm-browse 0.20.