Re: using imlib2 to display images doesn't seem to work correctly
Mike Ranweiler <[email protected]>
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <1295555899.2907.42.camel@moonarie> |
On Thu, 2011-01-20 at 19:54 +0100, Mathias Gumz wrote: > hello, > > > I've found an odd issue where some images don't display using imlib_render_image_on_drawable() on fluxbox, but work fine elsewhere. > > it is a bit unclear to me, what problem you are describing: > > a) you feed pictures into fluxbox (eg. to render buttons on the > windows) and fluxbox is not able to draw them correctly. > > b) you feed pictures into your own program and your own program is not > able to render these pictures onto a canvas (drawable). amd, as a > conicidence, you happen to experience this when you run your program > inside fluxbox. Sorry for not stating it clearly, appreciate the quick response. It's b - application doesn't render correctly using the imlib2 library. I attached the test program as an example. > > > Many larger images (like from my camera) work fine, but the problem can be recreated with these: > > http://fluxbox.org/screenshots/screenshots_full/screenshot_bobbens.png > > http://fluxbox.org/screenshots/screenshots_full/screenshot_zan.png > > what are these pictures showing? or do you feed these pictures into > your program, guessing that you really mean b) and not a)? > > > Using imlib_render_image_on_drawable_at_size() using the size of the image does always display the image correctly, it's in the test case after the failing call. I tried turning off the cache, both in the small test application and in fluxbox (src/FbTk/ImageImlib2.cc), but that doesn't make any difference. I'm typically doing this under VNC, it works fine on mwm and the Fedora-standard gnome/metacity desktop - I only see this problem using the testcase on fluxbox. > > you disabled the imlib2-cache in fluxbox to achieve what effect in > your app (again guessing, that you want to solve b))? Yes, for no real good reason. It seemed like there could be an issue with caching, so this seemed like something quick to try. > > maybe you can clarify your problem a little bit better. Did that help? Thanks, Mike > > best regards, > mathias -- Mike Ranweiler ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl