Le 8 juil. 11 à 15:22, Christian Schmitz a écrit: > Am 07.07.2011 um 21:16 schrieb Arnaud Nicolet: > >> The documentation says PicturetoBinaryStringMBS works on Linux, but >> perhaps the requirements are not the same than the other platforms? > > It should simply work. > > I just tested it. Works here.
It definitively fail here. Tried with this code: Function KeyDown(Key As String) As Boolean dim p As Picture dim s As String p=new Picture(32,32,32) p.Graphics.DrawOval 0,0,31,31 s=PicturetoBinaryStringMBS(p) p=nil End Function (the p=nil function is just where I put the breakpoint, because a bug in RB prevents me to use "break" (the involved event is not shown with using "break")). I get an empty string. Note that all this (both the former app and the testing app) are remote debugged. I can say some other pictures functions aren't working (e.g the one that converts to sepia). > Please note that all Linux picture functions try to get functions > from libgtk and libgdk at runtime. > > Do you have this libraries? > /usr/lib/libgtk-x11-2.0.so > and > /usr/lib/libgdk-x11-2.0.so "sort of". I have them with an extra ".0" at the end of the name ("libgtk-x11-2.0.so.0" and "libgdk-x11-2.0.so.0"). I even have a "libgdk-x11-2.0.so.0.2000.1". However, not with the exact same name you mentioned. I don't know if Linux reads from left to right or expects the correct file name... >> The PicturetoBinaryStringMBS is a convenient method. Using >> workarounds >> like looping thru every pixel in RB code is simply not an option. > > I'd rather prefer to fix the bug than to look for a workaround. Of course. It's just that I've had some bugs that could not be resolved in the past (I've taken the habit). _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info