Reputation: 978
How can I create a bigger tiled image from a smaller image using the Lumia Imaging SDK on WP 8.1? I'm trying to use JpegTools.BlendAsync()
(doc), but I'm not sure it's the best way to do it.
Also, how do I read an image as an IReadableBitmap
?
Upvotes: 0
Views: 71
Reputation: 3532
How can I create a bigger tiled image
Try ReframingFilter to get bigger image and JpegTools.BlendAsync()
just as you suggested (BlendFilter
with BlendFunction.Normal
would do the same I suppose).
how do I read an image as an IReadableBitmap?
StreamImageSource is what you are looking for. Get a stream, pass it to StreamImageSource
constructor and you can get an IReadableBitmap
with StreamImageSource.GetBitmapAsync(). Alternatively you can use StorageFileImageSource to achieve the same with a storage file.
Upvotes: 1