Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

Φεβρουάριος 2013 - Δημοσιεύσεις

[well, it’s been sometime since I wrote a technical blog post, hope you like it] Today I tried to find out how to animate a spritesheet in a Windows Store app. Turns out that it was much easier than expected! I used the spritesheet found here http://stackoverflow.com/questions/5812752/spritesheet-in-silverlight and some ObjectAnimationUsingKeyFrames code and it worked like a charm. Some explaining regarding the attached code 1. We’re using a Rectangle and an ImageBrush to display the spritesheet’s data 2. Each “frame” in the spritesheet has a width of 240 pixels and a height of 296 pixels 3. Remember that Storyboards in XAML act as threads that modify a value in a specific amount of time 4. We’re using CompositeTransform (and TranslateX, TranslateY) to “move” the image and “crop” the portion we wish to display. Practically, we’re animating the ((Rectangle.Fill as ImageBrush).Transform as CompositeTransform).TranslateX and TranslateY properties 5. Each value alteration is happening in a DiscreteObjectKeyFrame 6.

Διαβάστε περισσότερα »

[ImagineCup] Αν έχετε μια ενδιαφέρουσα ιδέα για ένα καινοτόμο project, μην διστάσετε να δηλώσετε συμμετοχή για τους ελληνικούς τελικούς του Imagine Cup ! Μεγάλα δώρα σας περιμένουν! Για πληροφορίες δείτε εδώ [/ImagineCup] Θέλετε να γίνετε μέλη των ομάδων ανάπτυξης κάποιου εκ των Skype, Windows Phone, Windows, Office; Αν ναι, διαβάστε παρακάτω! Microsoft is Hiring for New Graduate and Intern positions in the US and Europe! Software Development Engineer Software Development Engineer in Test Apply NOW on our website www.microsoft.com/university to be considered for a first round interview! Have a question? Want to apply? Check out our website at www.microsoft.com/university Apply now for our hiring events with Skype, Windows Phone, Interactive Entertainment, Bing, Business Solutions, Server and Tools, Windows, and Microsoft Office! Check out our positions…. Software Development Engineer (SDE) Whether you’re creating new code, algorithms or data structures, you are the link between abstract concepts and the technology

Διαβάστε περισσότερα »