<div dir="ltr"><div><div><div><div><div><div>Thanks Max,<br><br></div>But the problem I&#39;m facing in Imageloader.cpp is the unavailability of raw image data [unsigned char*].<br></div>I&#39;m trying to get the image data in ImageLoader::notifyFinished(CachedResource* resource)<br></div>So that after getting data I can do my changes and set the data again<br></div>But m_image is not providing me the data.<br></div>Is there any way I can get the raw data of the image.<br><br></div>TIA...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 1, 2015 at 5:29 AM, Myles C. Maxfield <span dir="ltr">&lt;<a href="mailto:mmaxfield@apple.com" target="_blank">mmaxfield@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Take a look at the ImageLoader class. This is involved when new bytes of an image are downloaded, and thus eventually ends up triggering the update of the relevant portion of the screen. You can use this class as a model for updating the screen once your algorithm is complete.<br>
<br>
—Myles<br>
<div><div class="h5">&gt; On Jan 30, 2015, at 8:58 PM, ankit srivastav &lt;<a href="mailto:ank.cpp@gmail.com">ank.cpp@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; I&#39;m new to webkit in context of Painting/Drawing.<br>
&gt;<br>
&gt; I&#39;m trying to use my own algo instead of Webkit defaults Bilenear Interpolation algo for interpolation of images on a webpage.<br>
&gt; That is if destImage Size is greater then SrcImage Size my algo will also come into picture alongside Webkit Bilinear.<br>
&gt;<br>
&gt; But the problem is my algo take lots of time to do the interpolation, hence the page load becomes slow.<br>
&gt; Specially for large images it takes too much time to load the image and hence the webpage.<br>
&gt;<br>
&gt; I have tried to use my algo in PlatformGraphicsContext.cpp along with Bilinear.<br>
&gt;<br>
&gt; If I&#39;m using a separate thread to for my algo.<br>
&gt; I&#39;m not getting the exact result i.e. once the images are drawn by Bilinear it is not been drawn after my algo.<br>
&gt;<br>
&gt; It means I need to fire an event after interpolation is done by my algo, so that images will be drawn using the data from my algo.<br>
&gt;<br>
&gt; Please if someone can tell me the Painting/Drawing mechanism of webkit it would be great.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Ank<br>
</div></div>&gt; _______________________________________________<br>
&gt; webkit-dev mailing list<br>
&gt; <a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
&gt; <a href="https://lists.webkit.org/mailman/listinfo/webkit-dev" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-dev</a><br>
<br>
</blockquote></div><br></div>