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

Bitmap Brushes ID2D1BitmapBrush from ID2D1Bitmap

$
0
0

When you create a ID2D1BitmapBrush using a ID2D1Bitmap, does the brush contain a copy of the bitmap?  Or is it referencing the specified bitmap?

I have noticed that you can delete the ID2D1Bitmap after creating the brush.

Which could either indicate that the brush has it's own copy.  Or that the bitmap wasn't deleted because it was a smart pointer.

The reason I care about this is:  memory usage.  I want to stroke the edges of my bitmaps with bitmap brushes.  To caulk the cracks that appear between neighboring bitmaps.  But I don't want to double the amount of memory these resources consume, by making a bitmap brush that duplicates the memory used by the bitmap.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



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