[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
how to use Fl_Pixmap to load a image from file
From: ####@####.#### Date: 26 Sep 2002 01:12:24 -0000 Message-Id: <2111354.1033002611713.JavaMail.postfix@srv16.mail.sohu.com> hi all i want to use flnx to load image from file but it seems the class Fl_Pixmap or Fl_Bitmap dont work . please give me some suggestions. thanks best regards counter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] how to use Fl_Pixmap to load a image from file
From: "xgzhang" ####@####.#### Date: 26 Sep 2002 02:48:58 -0000 Message-Id: <002901c26506$d41d3bd0$1301a8c0@pc019> You can use the GrLoadImageFromFile and GrDrawImageToFit to show the image ----- Original Message ----- From: ####@####.#### To: ####@####.#### Sent: Thursday, September 26, 2002 9:10 AM Subject: [nanogui] how to use Fl_Pixmap to load a image from file > hi all > i want to use flnx to load image from file but it seems the class Fl_Pixmap or Fl_Bitmap dont work . > please give me some suggestions. > thanks > best regards > counter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] how to use Fl_Pixmap to load a image from file
From: "Counter Wei" ####@####.#### Date: 26 Sep 2002 03:23:25 -0000 Message-Id: <000001c2650b$6fb95de0$5500a8c0@wl> thanks for ur help but I want to use the image to label my Fl_widget , if i use the Gr~ ,i dont know how to use the image id to label my Fl_widget how to do it ? best regards Counter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] how to use Fl_Pixmap to load a image from file
From: "xgzhang" ####@####.#### Date: 26 Sep 2002 04:25:12 -0000 Message-Id: <006801c26514$06bb88a0$1301a8c0@pc019> You can modify your widget 's draw() method ,add GrLoadImageFromFile and GrDrawImageToFit to your widget 's draw() . ----- Original Message ----- From: "Counter Wei" ####@####.#### To: ####@####.#### Sent: Thursday, September 26, 2002 11:18 AM Subject: Re: [nanogui] how to use Fl_Pixmap to load a image from file > thanks for ur help > but I want to use the image to label my Fl_widget , > if i use the Gr~ ,i dont know how to use the image id to label > my Fl_widget > how to do it ? > best regards > Counter > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |