<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 11:26 PM, Laurent Aimar <span dir="ltr"><<a href="mailto:fenrir@elivagar.org">fenrir@elivagar.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br>
</div></div> Because, you need to do it when calling ID2D1HwndRenderTarget_DrawBitmap<br>
(not sure it's the right place) using rect_src_clipped. Otherwise the<br>
cropping won't work. Also, it means you can simply declare a picture of<br>
width equals to picture->p[0].i_pitch/4 for the above issue but copy only<br>
the real size.<br></blockquote><div><br>Ok I need to play around with this. What's the best way to test the cropping? <br></div></div></div>