0

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?

nimbudew
  • 958
  • 11
  • 28

1 Answers1

1

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.

Michael Antipin
  • 3,522
  • 17
  • 32
  • I was able to create a tiled background using the `JpegTools.BlendAsync()` method, but I'm getting some unwanted separation lines at the boundaries of the tiles. Can you take a look here: http://stackoverflow.com/questions/31472176/lumia-imaging-sdk-image-blending-creates-separation-lines – nimbudew Jul 17 '15 at 09:11