From niranjan.kandrakota at catalytic.com Mon Jul 4 00:33:21 2005 From: niranjan.kandrakota at catalytic.com (niranjan) Date: Mon Jul 4 00:20:20 2005 Subject: [linux-graphics-dev] C/C++,Xlib,PNG Message-ID: <200507040433.j644XMD02037@localhost.localdomain> Hi, I am working on XWindows using xlib.I am using c & c++ for this application.I want to display a PNG image as background with some buttons on it.I am able to create buttons,but not able to display the image.I used XCreateImage function to create the image.But its not displaying.Can any one help me with an example code how to display a PNG image in the window. Thanking You, Niranjan. From dave at pawfal.org Mon Jul 4 05:08:28 2005 From: dave at pawfal.org (Dave Griffiths) Date: Mon Jul 4 05:08:40 2005 Subject: [linux-graphics-dev] C/C++,Xlib,PNG In-Reply-To: <200507040433.j644XMD02037@localhost.localdomain> References: <200507040433.j644XMD02037@localhost.localdomain> Message-ID: <46728.193.203.82.226.1120468108.squirrel@webmail.pawfal.org> It's a long long time since I did any xlib programming, but I think you'll have to use libpng to open the image and give you uncompressed data to give to xlib (I don't think xlib will do this for you but I could be wrong). There is some simple code to load png images here: http://savannah.nongnu.org/cgi-bin/viewcvs/fluxus/fluxus/libfluxus/src/PNGLoader.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup It would be much easier to use a widget toolkit, as the code to do this will then only be a few lines - I'd recommend fltk, which supports pngs internally. cheers, dave > Hi, > I am working on XWindows using xlib.I am using c & c++ for this > application.I want to display a PNG image as background with some buttons > on > it.I am able to create buttons,but not able to display the image.I used > XCreateImage function to create the image.But its not displaying.Can any > one > help me with an example code how to display a PNG image in the window. > > Thanking You, > Niranjan. > _______________________________________________ > linux-graphics-dev mailing list > linux-graphics-dev@music.columbia.edu > http://music.columbia.edu/mailman/listinfo/linux-graphics-dev > From niranjan.kandrakota at catalytic.com Mon Jul 4 05:50:26 2005 From: niranjan.kandrakota at catalytic.com (niranjan) Date: Mon Jul 4 05:37:35 2005 Subject: [linux-graphics-dev] C/C++,Xlib,PNG In-Reply-To: <46728.193.203.82.226.1120468108.squirrel@webmail.pawfal.org> References: <200507040433.j644XMD02037@localhost.localdomain> <46728.193.203.82.226.1120468108.squirrel@webmail.pawfal.org> Message-ID: <200507040950.j649oRV02153@localhost.localdomain> Hi, Thank you very much for the reply.I think it would be helpful if you can send me the complete sample program,as i don't have any idea about the PNGLoader.h used in the sample code. Thanks & Regards, Niranjan. On Monday 04 July 2005 14:38, you wrote: > It's a long long time since I did any xlib programming, but I think you'll > have to use libpng to open the image and give you uncompressed data to > give to xlib (I don't think xlib will do this for you but I could be > wrong). There is some simple code to load png images here: > > http://savannah.nongnu.org/cgi-bin/viewcvs/fluxus/fluxus/libfluxus/src/PNGL >oader.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup > > It would be much easier to use a widget toolkit, as the code to do this > will then only be a few lines - I'd recommend fltk, which supports pngs > internally. > > cheers, > > dave > > > Hi, > > I am working on XWindows using xlib.I am using c & c++ for this > > application.I want to display a PNG image as background with some buttons > > on > > it.I am able to create buttons,but not able to display the image.I used > > XCreateImage function to create the image.But its not displaying.Can any > > one > > help me with an example code how to display a PNG image in the window. > > > > Thanking You, > > Niranjan. > > _______________________________________________ > > linux-graphics-dev mailing list > > linux-graphics-dev@music.columbia.edu > > http://music.columbia.edu/mailman/listinfo/linux-graphics-dev > > _______________________________________________ > linux-graphics-dev mailing list > linux-graphics-dev@music.columbia.edu > http://music.columbia.edu/mailman/listinfo/linux-graphics-dev From sxpert at esitcom.org Mon Jul 4 05:47:21 2005 From: sxpert at esitcom.org (Amaury Jacquot) Date: Mon Jul 4 05:48:24 2005 Subject: [linux-graphics-dev] C/C++,Xlib,PNG In-Reply-To: <200507040950.j649oRV02153@localhost.localdomain> References: <200507040433.j644XMD02037@localhost.localdomain> <46728.193.203.82.226.1120468108.squirrel@webmail.pawfal.org> <200507040950.j649oRV02153@localhost.localdomain> Message-ID: <42C905A9.2070308@esitcom.org> niranjan wrote: > Hi, > Thank you very much for the reply.I think it would be helpful if you can > send me the complete sample program,as i don't have any idea about the > PNGLoader.h used in the sample code. > > Thanks & Regards, > Niranjan. >>http://savannah.nongnu.org/cgi-bin/viewcvs/fluxus/fluxus/libfluxus/src/PNGL >>oader.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup guess you needs to replace PNGLoader.cpp with PNGLoader.h in the URL above... alternatively, you can click on the "src" link, then on the "1.1" link next to the "PNGLoader.h" link... man, do people ever think for themselves in this forsaken society ??? From niranjan.kandrakota at catalytic.com Mon Jul 4 06:05:19 2005 From: niranjan.kandrakota at catalytic.com (niranjan) Date: Mon Jul 4 05:52:19 2005 Subject: [linux-graphics-dev] C/C++,Xlib,PNG In-Reply-To: <42C905A9.2070308@esitcom.org> References: <200507040433.j644XMD02037@localhost.localdomain> <200507040950.j649oRV02153@localhost.localdomain> <42C905A9.2070308@esitcom.org> Message-ID: <200507041005.j64A5KG02366@localhost.localdomain> Sorry,I haven't seen it before.Thank you very much. Niranjan. On Monday 04 July 2005 15:17, you wrote: > niranjan wrote: > > Hi, > > Thank you very much for the reply.I think it would be helpful if you > > can send me the complete sample program,as i don't have any idea about > > the PNGLoader.h used in the sample code. > > > > Thanks & Regards, > > Niranjan. > > > >>http://savannah.nongnu.org/cgi-bin/viewcvs/fluxus/fluxus/libfluxus/src/PN > >>GL oader.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup > > guess you needs to replace PNGLoader.cpp with PNGLoader.h in the URL > above... > alternatively, you can click on the "src" link, then on the "1.1" link > next to the "PNGLoader.h" link... > > man, do people ever think for themselves in this forsaken society ??? > _______________________________________________ > linux-graphics-dev mailing list > linux-graphics-dev@music.columbia.edu > http://music.columbia.edu/mailman/listinfo/linux-graphics-dev From dave at pawfal.org Mon Jul 4 06:17:03 2005 From: dave at pawfal.org (Dave Griffiths) Date: Mon Jul 4 06:17:14 2005 Subject: [linux-graphics-dev] C/C++,Xlib,PNG In-Reply-To: <200507041005.j64A5KG02366@localhost.localdomain> References: <200507040433.j644XMD02037@localhost.localdomain> <200507040950.j649oRV02153@localhost.localdomain> <42C905A9.2070308@esitcom.org> <200507041005.j64A5KG02366@localhost.localdomain> Message-ID: <45387.193.203.82.226.1120472223.squirrel@webmail.pawfal.org> > Sorry,I haven't seen it before.Thank you very much. that's from the cvs version of fluxus - the whole thing can be downloaded from here: http://www.pawfal.org/Software/fluxus but the code you're interested in is only that one function really. > > Niranjan. > > On Monday 04 July 2005 15:17, you wrote: >> niranjan wrote: >> > Hi, >> > Thank you very much for the reply.I think it would be helpful if >> you >> > can send me the complete sample program,as i don't have any idea about >> > the PNGLoader.h used in the sample code. >> > >> > Thanks & Regards, >> > Niranjan. >> > >> >>http://savannah.nongnu.org/cgi-bin/viewcvs/fluxus/fluxus/libfluxus/src/PN >> >>GL oader.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup >> >> guess you needs to replace PNGLoader.cpp with PNGLoader.h in the URL >> above... >> alternatively, you can click on the "src" link, then on the "1.1" link >> next to the "PNGLoader.h" link... >> >> man, do people ever think for themselves in this forsaken society ??? >> _______________________________________________ >> linux-graphics-dev mailing list >> linux-graphics-dev@music.columbia.edu >> http://music.columbia.edu/mailman/listinfo/linux-graphics-dev > _______________________________________________ > linux-graphics-dev mailing list > linux-graphics-dev@music.columbia.edu > http://music.columbia.edu/mailman/listinfo/linux-graphics-dev > From kouhia at nic.funet.fi Wed Jul 27 14:12:49 2005 From: kouhia at nic.funet.fi (Juhana Sadeharju) Date: Wed Jul 27 14:12:55 2005 Subject: [linux-graphics-dev] free photos? Message-ID: Hello. Anyone would know a photo collection with license comparable to GNU licenses? Photos should not have watermarks and not have photographer's name on the photos itself. (I also should be able to give away the collection to others.) We would need the free photos because we would use parts of the photos as textures. E.g., sides of houses. If I would want create such a photo collection, what license comparable to GNU licenses I should use? Juhana From vantr at touchtunes.com Wed Jul 27 15:35:21 2005 From: vantr at touchtunes.com (Tristan Van Berkom) Date: Wed Jul 27 14:27:33 2005 Subject: [linux-graphics-dev] free photos? In-Reply-To: References: Message-ID: <42E7E1F9.4010404@touchtunes.com> Juhana Sadeharju wrote: > Hello. Anyone would know a photo collection with license > comparable to GNU licenses? Photos should not have watermarks > and not have photographer's name on the photos itself. (I also > should be able to give away the collection to others.) > > We would need the free photos because we would use parts of the > photos as textures. E.g., sides of houses. > > If I would want create such a photo collection, what license > comparable to GNU licenses I should use? A freind of mine licences his photography with this: http://creativecommons.org/license/?format=image I think its what you're looking for :) Cheers, -Tristan Note, I hope this message doesn't go out twice, this message bounced from my other address. From sjbaker1 at airmail.net Thu Jul 28 20:12:35 2005 From: sjbaker1 at airmail.net (Steve Baker) Date: Thu Jul 28 18:24:21 2005 Subject: [linux-graphics-dev] free photos? In-Reply-To: References: Message-ID: <42E97473.5040305@airmail.net> Juhana Sadeharju wrote: > Hello. Anyone would know a photo collection with license > comparable to GNU licenses? Photos should not have watermarks > and not have photographer's name on the photos itself. (I also > should be able to give away the collection to others.) The Wikimedia and Wikipedia projects have a lot of photo's that they vetted to ensure they are redistributable - and each one comes with a careful explanation of WHY the image is redestributable (eg because copyright has expired or because the photographer has released it with a suitable license). Try here for example: http://commons.wikimedia.org/wiki/Main_Page ---------------------------- Steve Baker ------------------------- HomeEmail: WorkEmail: HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK-----