Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Combination of Gtk2 and Imlib2

by Schnuck (Novice)
on Apr 27, 2020 at 16:51 UTC ( [id://11116122]=note: print w/replies, xml ) Need Help??


in reply to Re: Combination of Gtk2 and Imlib2
in thread Combination of Gtk2 and Imlib2

Thank you for your reply.
There is a reason I'm trying to make Image::Base load the jpeg and not Gtk2.
Displaying several thumbnails on a canvas is very slow with the image loading abilities of Gtk2.
Image::Base has GTk2 parts and Imlib2 parts, so I thought they would offer some kind of connection between them.

Perhaps it would be better to just use the Imlib2-module with the Gtk-module?
I don't know. The Image::Base part may be unnecessary or even a bad idea.

Greetings

Replies are listed 'Best First'.
Re^3: Combination of Gtk2 and Imlib2
by Schnuck (Novice) on Apr 27, 2020 at 18:37 UTC
    I thought about it for a while and realized it would be a good idea to find out where the time is lost during the display of the images as thumbnails.
    I used Time::HiRes to find out.

    I am actually loading jpeg data from a tar archive. I have to convert this to a Pixpuf, because Gtk2-Canvas needs a pixbuf to show the data.
    The conversion function into a pixbuf consumes the majority (~70%) of the time.

    This may be a hint that this won't be faster using Imlib2?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found