SharpDX + vb.net – Displaying bitmaps and bitmap brushes

SharpDX + vb.net – Displaying bitmaps and bitmap brushes
The adventures into SharpDX continue… this instalment: bitmaps and burshes

Thanks to this wonderful article [here], I did some code monkery and converted it to vb.net. The original was designed for wpf and used device context, but I changed it to work with the RenderTarget covered in the last article. I also improved on the RenderTarget text – the window resizing was in the wrong place, making images blurry – now sorted and rendering crisp lines and images…

Video of the results (including easy opacity):

I’m in the middle of drafting custom classes around this, but the class below should give you the idea:

 

Also, the update to the RenderTarget class:
 
Share this:
0 votes

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">