LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2008, 12:07 AM   #1
kergunyahite
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Imlib 2 problems of understanding


Ref the More Advanced Example at

ooops - my first post - wont allow me a url just google Imlib2 documentation and go to the docs.enlightenment.org link


Have Imlib2 installed on my Centos 5 system and all works fine. I am able to use it for my immediate needs but do not understand fully how it works. Perhaps there are others in the same boat - anyway here are my questions.

1 What exactly is specified in an update added to the update list when responding to a motion_notify event? Is it just a rectangle?

2 Why is the same code executed for each update? Is it because the answer to 1 above is yes - and so we must redraw the whole thing each time just ti get the bit we want to blend to the updated image?

3 Is this really quicker than just redrawing the whole thing from scratch? - which we now seem to do several times - about 4 on average according to some mods I made to count how many iterations of the update loop occurred!

4 I added a call to imlib_image_create_scaled_image_from_drawable() to get a thumbnail sized jpg - it was fine except that the text was missing although visible in the window. Why? Should it have been treated differently and blended before the rendering?


I have been at this programming lark since 1965 when I joined IBM. Ever since I have never liked to not fully understand what is going on. I feel I have some basic misunderstanding and am expecting a "Doh!" moment.


So sock it too me guys!

John
 
Old 01-31-2008, 05:44 PM   #2
kergunyahite
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
OK so I have worked it out for myself!

Yes updates are just rectangles.

Although it seems wasteful to redraw everything for each update Imlib2's cache helps as the loading of the background and icon images will come from the cache. What is saved is the amount of data that needs to be written to the window. Extra time is spent working out which bits change and time saved by only changing those bits. Probably also important is that the amount of data thrown at the window is much less so the system will seem more responsive - particularly for a large window.

The problem with the Text not appearing does not seem to exist! Mental aberration on programmers part??? Am I finally cracking up!
John
 
  


Reply

Tags
imlib2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems understanding GRUB config with my sata drive mlsbraves Linux - Software 1 02-16-2006 02:05 PM
enlightenment and imlib grcunningham Linux - Software 1 04-28-2004 11:14 AM
Where can I find imlib 1.8 metalaid Linux - Software 1 01-19-2004 11:04 PM
imlib & fnlib problems nirva Linux - Software 0 03-02-2003 04:31 PM
imlib Neur0tek Linux - Newbie 2 04-25-2002 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration