Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

Patch Uploaded: #17504

$
0
0

cureos has uploaded a patch.

Description:
This patch illustrates how the WriteableBitmap initialization methods from resources (Content, Stream etc.) can be moved from WriteableBitmapConvertExtensions to BitmapFactory for (in my opinion) a more intuitive API.

The methods are changed from extension methods to regular static methods, returning the WriteableBitmap that is created inside the method.

The issue was initially raised in the discussion forum here: https://writeablebitmapex.codeplex.com/discussions/637453

I have not removed the original extension methods, but I have decorated them with an [Obsolete] attribute.

As a proof-of-concept, I have updated the samples where these convert extension methods were previously used.

Since several of the source code files had SVN properties image/png, I failed to create a decent SVN patch. I have therefore copied only the changed files in their entirety, and placed them in corresponding folders in the compressed zip archive.


Viewing all articles
Browse latest Browse all 360

Trending Articles



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