This WritableBitmap behavior has nothing to do with DRM and everything related to security. If the screenshot you are trying to take displays an image element with content from another domain, then there must be a crossdomain.xml file with the appropriate permissions for that domain. You can contact the domain owner and ask them to place crossromain.xml in the root of their domain.
Alternatively, the Full-Trust OOB application should do the trick as it does not check for crossdomain.xml.
Well, if you have <Image Source = "http://crossdomain.com/someimage.jpg" /> in your visual tree, and you try to create a WriteableBitmap from it, that access to the WriteableBitmap element will be blocked, crossdomain.xml or not. (Shame on you on microsoft). The good news is (sorta), you can use the following workaround: Upload an image using WebClient; call SetSource on the image with the stream from the OpenReadCompleted handler. Create your WriteableBitmap and notice how the Pixels property no longer throws a security exception. Far from perfect, but manageable.
source share