<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 17, 2015 at 8:51 PM, Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 17 July 2015 at 21:49, Gehad Elrobey <<a href="mailto:gehadelrobey@gmail.com">gehadelrobey@gmail.com</a>> wrote:<br>
><br>
><br>
> On Fri, Jul 17, 2015 at 8:37 PM, Lubomir I. Ivanov <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On 17 July 2015 at 21:13, Gehad Elrobey <<a href="mailto:gehadelrobey@gmail.com">gehadelrobey@gmail.com</a>> wrote:<br>
>> ><br>
>> ><br>
>> > On Fri, Jul 17, 2015 at 8:08 PM, Lubomir I. Ivanov <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>><br>
<div><div class="h5">>> > wrote:<br>
>> >><br>
>> >> hello Gehad,<br>
>> >><br>
>> >> without looking at the code, the greyscale mode works as expected, but<br>
>> >> both the Preview and actual Print now razterize everything on Windows<br>
>> >> (profile and table). we want them in vector graphics on all OSes and<br>
>> >> Qt versions where possible.<br>
>> >><br>
>> >> perhaps, that's something you've overlooked?<br>
>> ><br>
>> ><br>
>> > I am forces to render the dive profile on a QImage so that I can convert<br>
>> > it<br>
>> > to grayscale image and then render it on top of the QWebview, Do you<br>
>> > think<br>
>> > there is a way to convert the vector graphics to grayscale?<br>
>> ><br>
>><br>
>> i see...<br>
>> well bummer, i can't find if Qt has shaders, custom color palettes,<br>
>> "color delegates" and such for QPicture/QPainter. which means that to<br>
>> convert something to greyscale it needs to be rasterized first. Tomaz,<br>
>> if you have any idea, do say.<br>
>><br>
>> i guess for now you can only *rasterize* the profile if greyscale is<br>
>> enabled.<br>
>> but this isn't a pretty solution...we may have to attempt to use the<br>
>> custom color tables for the profile after all (i.e. what Tomaz brought<br>
>> back). :(<br>
>><br>
>> but why are the tables raster - are you rasterizing the whole page?<br>
>> shouldn't the CSS greyscale filter preserve the vector?<br>
><br>
><br>
> It seems that the greyscale filter render the whole page including the<br>
> tables.<br>
><br>
<br>
</div></div>you mean, it rasterizes them?<br>
<br></blockquote></div><br clear="all"><div>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.  </div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</div></div>