Reppien
Reppien

Reputation: 125

Spritesheet in XAML

I'm currently making a pokerapplication, and I found a spritesheet with images of cards. But i have no idea how to show only part of that picture with XAML. Can anybody help?

Upvotes: 0

Views: 960

Answers (1)

Seb Boulet
Seb Boulet

Reputation: 981

Create a helper class that will take your spritesheet bitmap and generate new bitmaps from it as required.

Here is an example:

http://taylorza.blogspot.co.uk/2009/08/silverlight-spritesheet-management-with.html

Upvotes: 1

Related Questions