Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Direct2d - C++ stroke using bitmap

$
0
0

I have created a bitmap brush using an image. I have used the bitmap brush to draw a rect using

m_pRenderTarget->DrawRectangle(&rcBrushRect, m_pStitchBitmapBrush, 10, NULL);

and of course the results are not what I want. The image looks like it's being repeated many times on top of itself.

So can Direct2d do this task or do I have to break down the shape's segments and draw the image itself? (yuk)

If someone knows of an example I would appreciate it.

Thanks


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>