writeablebitmap

Resizing the WritableBitmap

Hello All, I have created a WriteableBitmap in Gray16 format. I want to resize this WriteableBitmap to my known dimention preserving the pixel format(Gray16). Is any one worked on the Resizing the WriteableBitmap. Please help me. I also searched the internet and found http://writeablebitmapex.codeplex.com/ but this through an assebml...

Does Silverlight 4's WriteableBitmap *really* cripple legit cross-domain access in the name of DRM?

In this thread from a year ago it's explained that WriteableBitmap will block read access when any part of it comes from an outside domain - say a free image server. It's further elaborated upon that this is for "DRM". I guess there's some big threat of someone writing a movie-ripper in Silverlight that includes a movie from another do...

Overlay two images using WriteableBitmap.

Hi there, I have got two images, say png and jpeg and I need to overlay them. In WPF it can be done by DrawingGroup (unavailable in SL). I guess it might be done with WriteableBitmap instead. Do you have any idea how to do that? Thanks in advance! Cheers ...

How To Convert a Bitmap to a Collection of Paths in WPF (in code not XAML)

I have an occupancy grid that has 3 states - Occupied, Free, Unknown. Occupancy grid is a simple 2 dimensional array of states. The grid represents a floor plan where Occupied=Wall, Free=Open Floor, Unknown=what's behind the wall or not mapped. This grid is say 800x800 wide with each cell representing 5cm of the real world. I want to...

Does WriteableBitmap has new features in Silverlight 4 ?

and if someone could give me an example on how to use it, with a stream? (not sure how that works) I know how to create a BitmapImage from an URI now I need to convert this image to a WriteableBitmap, but I get a null exception error with something like this: BitmapImage image = new BitmapImage(new Uri("http://www.example.com/example.pn...

Handling image load exception gracefully

Hi, I'm loading user images using Silverlight 3. Everything works fine and I can set the file stream to a BitmapImage and it gets rendered OK. The problem is that if I try to load something that's not an image (like a .exe that's been renamed to .png) Silverlight crashes with a System.Exception that says "Catastrophic failure". The M...

Silverlight 4 WriteableBitmap to Bitmap

This is my first Silverlight app and my first go at C#. I have a C# class library that I access from Silverlight using COM. The C# library has a method that takes a Bitmap as an argument, however from what I can see Silverlight only has a WritableBitmap. Is there a way to convert a WritableBitmap to a Bitmap in Silverlight? Some other...