On Fri, Jul 17, 2015 at 8:37 PM, Lubomir I. Ivanov <[email protected]> wrote:
> On 17 July 2015 at 21:13, Gehad Elrobey <[email protected]> wrote: > > > > > > On Fri, Jul 17, 2015 at 8:08 PM, Lubomir I. Ivanov <[email protected]> > > wrote: > >> > >> hello Gehad, > >> > >> without looking at the code, the greyscale mode works as expected, but > >> both the Preview and actual Print now razterize everything on Windows > >> (profile and table). we want them in vector graphics on all OSes and > >> Qt versions where possible. > >> > >> perhaps, that's something you've overlooked? > > > > > > I am forces to render the dive profile on a QImage so that I can convert > it > > to grayscale image and then render it on top of the QWebview, Do you > think > > there is a way to convert the vector graphics to grayscale? > > > > i see... > well bummer, i can't find if Qt has shaders, custom color palettes, > "color delegates" and such for QPicture/QPainter. which means that to > convert something to greyscale it needs to be rasterized first. Tomaz, > if you have any idea, do say. > > i guess for now you can only *rasterize* the profile if greyscale is > enabled. > but this isn't a pretty solution...we may have to attempt to use the > custom color tables for the profile after all (i.e. what Tomaz brought > back). :( > > but why are the tables raster - are you rasterizing the whole page? > shouldn't the CSS greyscale filter preserve the vector? > It seems that the greyscale filter render the whole page including the tables. -- regards, Gehad
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
