[PyKDE] bad resolution on designer imported PNGs
Willi Richert
w.richert at gmx.net
Wed Jul 24 15:08:01 BST 2002
Hi,
After the hint with the handling of semi-transparent XPM problems I loaded
that png into gimp and saved it as an xpm. After that the generated xpm-code
could be easily imported into python:
static char * back[] = { ... } /* C-style */
imgBack = [ ... ] # Python-style
And it looks nice now!
Btw, it is also only 0.4 of the original size.
Have fun,
willi
On Wednesday 24 July 2002 14:41, Hans-Peter Jansen wrote:
> On Wednesday 24 July 2002 11:40, Willi Richert wrote:
> > Hi,
> >
> > I have some nice PNG images which I want to use for the toolbar. But,
> > when ddesigner/pyuic generates the icons data they don't look as good any
> > more. I have to use the PNG file name instead so that they look good
> > (QPixmap("forward.png")).
> >
> > You can see the difference in the attached picture (1,2K only). The left
> > is the pyuic generated data, the right is the png given QPixmap as a file
> > path.
> >
> > Any hints?
>
> I came across this a few days before. It's releated to xpm conversion
> of semi transparent shadows in the PNG. I got the feeling, this isn't
> supported in xpm format. Please somebody correct me, if I'm wrong.
>
> I'm thinking about a tool to inline the images in a module, and load
> them via StringIO.
>
> > willi
>
> Hans-Peter
>
> _______________________________________________
> PyKDE mailing list PyKDE at mats.gmd.de
> http://mats.gmd.de/mailman/listinfo/pykde
More information about the PyQt
mailing list