GSoC Status - Week 7 (Customizable prints)

Gehad Elrobey gehadelrobey at gmail.com
Fri Jul 17 12:15:26 PDT 2015


On Fri, Jul 17, 2015 at 8:51 PM, Lubomir I. Ivanov <neolit123 at gmail.com>
wrote:

> On 17 July 2015 at 21:49, Gehad Elrobey <gehadelrobey at gmail.com> wrote:
> >
> >
> > On Fri, Jul 17, 2015 at 8:37 PM, Lubomir I. Ivanov <neolit123 at gmail.com>
> > wrote:
> >>
> >> On 17 July 2015 at 21:13, Gehad Elrobey <gehadelrobey at gmail.com> wrote:
> >> >
> >> >
> >> > On Fri, Jul 17, 2015 at 8:08 PM, Lubomir I. Ivanov <
> neolit123 at gmail.com>
> >> > 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.
> >
>
> you mean, it rasterizes them?
>
>
Yes I did, though when I test the HTML file with chromium everything
remains vector graphics, I am not sure why this happens with Qt webkit, I
need to test this more.

-- 
regards,

Gehad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150717/a897ac0e/attachment.html>


More information about the subsurface mailing list