Mailing list archives : pcb-rnd

ID:3271
From:ge...@igor2.repo.hu
Date:Tue, 13 Aug 2019 09:33:26 +0200 (CEST)
Subject:[pcb-rnd] new: lesstif background image: png, jpg, gif (pixmap)
Hi all,
 
as part of the hidlib effort, I'm refactoring how the background image 
works. The original code is very limited and can be used to display a 
background image only, while the amount of code required is almost the 
same as for a generic "draw this pixmap here" solution. Since I have a lot 
of plans regarding to pixmaps in softare using hidlib, I decided to clean 
this up now, make the code generic and add all the pixmap HID APIs, way 
before the first stable release of the hidlib.
 
As the first step, I've added a central pixmap infrastructure and I made 
modifications to all HIDs so the pixmap code is not specific to background 
picture anymore.
 
 
What is more important now is that instead of each HID trying to load the 
pixmaps from file, the central infrastructure and import plugins will 
handle differenf formats. For today, this means the lesstif HID can now 
load pnm, png, jpeg and gif for background (using an import plugin that 
in turns uses libgd). It used to load only pnms.
 
 
Later on I will switch over the gtk hid to use the same import infra 
instead of gdk for loading the images. Long term (not in this cycle) we 
will have a couple of new features based on pixmaps, including better 
support for breadboards/perfboards. Stay tuned, I will post about the new 
features when they happen.
 
Best regards,
 
Igor2
 
 

Reply subtree:
3271 [pcb-rnd] new: lesstif background image: png, jpg, gif (pixmap) from ge...@igor2.repo.hu