SpriteLibrary/SpriteLibrary/Doc/Help/html/20db7ecc-35df-8911-2615-1f2...

11 lines
11 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html><head><meta http-equiv="X-UA-Compatible" content="IE=edge" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" type="text/css" href="../styles/branding.css" /><link rel="stylesheet" type="text/css" href="../styles/branding-en-US.css" /><script type="text/javascript" src="../scripts/branding.js"> </script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Sprite.Rotation Property </title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="Rotation property" /><meta name="System.Keywords" content="Sprite.Rotation property" /><meta name="Microsoft.Help.F1" content="SpriteLibrary.Sprite.Rotation" /><meta name="Microsoft.Help.F1" content="SpriteLibrary.Sprite.get_Rotation" /><meta name="Microsoft.Help.F1" content="SpriteLibrary.Sprite.set_Rotation" /><meta name="Microsoft.Help.Id" content="P:SpriteLibrary.Sprite.Rotation" /><meta name="Description" content="Change the rotation of the sprite, using degrees. 0 degrees is to the right. 90 is up. 180 left, 270 down. But, if your sprite was drawn facing up, then rotating it 90 degrees will have it pointing left. The angle goes counter-clockwise." /><meta name="Microsoft.Help.ContentType" content="Reference" /><meta name="BrandingAware" content="true" /><meta name="container" content="SpriteLibrary" /><meta name="file" content="20db7ecc-35df-8911-2615-1f2b8777f03b" /><meta name="guid" content="20db7ecc-35df-8911-2615-1f2b8777f03b" /><link rel="stylesheet" type="text/css" href="../styles/branding-Website.css" /><script type="text/javascript" src="../scripts/jquery-1.11.0.min.js"></script><script type="text/javascript" src="../scripts/branding-Website.js"></script><script type="text/javascript" src="../scripts/clipboard.min.js"></script></head><body onload="OnLoad('cs')"><input type="hidden" id="userDataCache" class="userDataStyle" /><div class="pageHeader" id="PageHeader">SpriteLibrary<form id="SearchForm" method="get" action="#" onsubmit="javascript:TransferToSearchPage(); return false;"><input id="SearchTextBox" type="text" maxlength="200" /><button id="SearchButton" type="submit"></button></form></div><div class="pageBody"><div class="leftNav" id="leftNav"><div id="tocNav"><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm" title="SpriteLibrary" tocid="roottoc">SpriteLibrary</a></div><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm" title="SpriteLibrary" tocid="6b7227c0-7a6a-6342-3b08-917c7de429cc">SpriteLibrary</a></div><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="66013d9b-4126-7d65-05bb-94eb9d134be6.htm" title="Sprite Class" tocid="66013d9b-4126-7d65-05bb-94eb9d134be6">Sprite Class</a></div><div class="toclevel1" data-toclevel="1" data-childrenloaded="true"><a class="tocExpanded" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="bcdb40c8-478a-043c-5db0-393001600029.htm" title="Sprite Properties" tocid="bcdb40c8-478a-043c-5db0-393001600029">Sprite Properties</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="23ac9f1e-8033-78a2-030b-b12d6496c3dd.htm" title="AnimationCount Property " tocid="23ac9f1e-8033-78a2-030b-b12d6496c3dd">AnimationCount Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="f0db6147-f3aa-d599-6371-a89da047bbc5.htm" title="AnimationDone Property " tocid="f0db6147-f3aa-d599-6371-a89da047bbc5">AnimationDone Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="f55ba01a-50d3-248c-5c34-ba32355db223.htm" title="AnimationIndex Property " tocid="f55ba01a-50d3-248c-5c34-ba32355db223">AnimationIndex Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="f7da08ef-ca8d-fd84-5c60-7bd966be6374.htm" title="AutomaticallyMoves Property " tocid="f7da08ef-ca8d-fd84-5c60-7bd966be6374">AutomaticallyMoves Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="29f62d1a-212b-273e-582e-670c1ea2856c.htm" title="BaseImageLocation Property " tocid="29f62d1a-212b-273e-582e-670c1ea2856c">BaseImageLocation Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="0f7e6cfa-e1e4-1b7a-152d-5b3281ac8bfe.htm" title="Destroying Property " tocid="0f7e6cfa-e1e4-1b7a-152d-5b3281ac8bfe">Destroying Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="603ff402-efe2-bede-5c71-1a9583da0800.htm" title="FrameIndex Property " tocid="603ff402-efe2-bede-5c71-1a9583da0800">FrameIndex Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="8b245db5-fbb6-18bc-d219-832668d1432a.htm" title="GetSize Property " tocid="8b245db5-fbb6-18bc-d219-832668d1432a">GetSize Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="af9edc83-1d26-349b-8105-6064a540e2c7.htm" title="GetVisibleSize Property " tocid="af9edc83-1d26-349b-8105-6064a540e2c7">GetVisibleSize Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="f374c8cd-af01-f03a-1d31-0b46e0d8745c.htm" title="HasBeenDrawn Property " tocid="f374c8cd-af01-f03a-1d31-0b46e0d8745c">HasBeenDrawn Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="8e41c462-a765-51e2-4c3b-de231acba259.htm" title="ID Property " tocid="8e41c462-a765-51e2-4c3b-de231acba259">ID Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="139d1443-5e11-02ed-7534-eb0f857804da.htm" title="MovingToPoint Property " tocid="139d1443-5e11-02ed-7534-eb0f857804da">MovingToPoint Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="90a2e7f3-348b-d10b-ee6b-9397ef5daa18.htm" title="Opacity Property " tocid="90a2e7f3-348b-d10b-ee6b-9397ef5daa18">Opacity Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="6273fa69-a784-9916-a8eb-5b16529fdf48.htm" title="PictureBoxLocation Property " tocid="6273fa69-a784-9916-a8eb-5b16529fdf48">PictureBoxLocation Property </a></div><div class="toclevel2 current" data-toclevel="2"><a data-tochassubtree="false" href="20db7ecc-35df-8911-2615-1f2b8777f03b.htm" title="Rotation Property " tocid="20db7ecc-35df-8911-2615-1f2b8777f03b">Rotation Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="e753341a-7040-8dda-8f1e-681e926e9292.htm" title="SpriteName Property " tocid="e753341a-7040-8dda-8f1e-681e926e9292">SpriteName Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="7d21be0e-d534-6d93-1476-3aa585a8fea3.htm" title="SpriteOriginName Property " tocid="7d21be0e-d534-6d93-1476-3aa585a8fea3">SpriteOriginName Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="ae4a57de-4763-c9cb-c9e3-c6e186296fd8.htm" title="SpriteReachedEndPoint Property " tocid="ae4a57de-4763-c9cb-c9e3-c6e186296fd8">SpriteReachedEndPoint Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="5b5ccc3b-4e41-862f-7bba-7d55a45c6747.htm" title="VisibleHeight Property " tocid="5b5ccc3b-4e41-862f-7bba-7d55a45c6747">VisibleHeight Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="cd53c0db-02b1-e505-0dce-a7d4d7710d5c.htm" title="VisibleWidth Property " tocid="cd53c0db-02b1-e505-0dce-a7d4d7710d5c">VisibleWidth Property </a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="6adf23fc-b0f8-5abf-bd39-7dc44f060e7c.htm" title="Zvalue Property " tocid="6adf23fc-b0f8-5abf-bd39-7dc44f060e7c">Zvalue Property </a></div></div><div id="tocResizableEW" onmousedown="OnMouseDown(event);"></div><div id="TocResize" class="tocResize"><img id="ResizeImageIncrease" src="../icons/TocOpen.gif" onclick="OnIncreaseToc()" alt="Click or drag to resize" title="Click or drag to resize" /><img id="ResizeImageReset" src="../icons/TocClose.gif" style="display:none" onclick="OnResetToc()" alt="Click or drag to resize" title="Click or drag to resize" /></div></div><div class="topicContent" id="TopicContent"><table class="titleTable"><tr><td class="titleColumn">Sprite<span id="LSTFDF050DD_0"></span><script type="text/javascript">AddLanguageSpecificTextSet("LSTFDF050DD_0?cpp=::|nu=.");</script>Rotation Property </td></tr></table><span class="introStyle"></span> <div class="summary">
Change the rotation of the sprite, using degrees. 0 degrees is to the right. 90 is up.
180 left, 270 down. But, if your sprite was drawn facing up, then rotating it 90 degrees
will have it pointing left. The angle goes counter-clockwise. The image will be scaled
such that it continues to fit within the rectangle that it was originally in. This results
in a little bit of shrinking at times, but you should rarely notice that.
</div><p> </p>
<strong>Namespace:</strong>
 <a href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm">SpriteLibrary</a><br />
<strong>Assembly:</strong>
 SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.5 (1.0.0.5)<div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID1RB')" onkeypress="SectionExpandCollapse_CheckKey('ID1RB', event)" tabindex="0"><img id="ID1RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Syntax</span></div><div id="ID1RBSection" class="collapsibleSection"><div class="codeSnippetContainer"><div class="codeSnippetContainerTabs"><div id="ID0EACA_tab1" class="codeSnippetContainerTabSingle">C#</div></div><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetToolBar"><div class="codeSnippetToolBarText"><a id="ID0EACA_copyCode" href="#" class="copyCodeSnippet" onclick="javascript:CopyToClipboard('ID0EACA');return false;" title="Copy">Copy</a></div></div><div id="ID0EACA_code_Div1" class="codeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="keyword">public</span> <span class="identifier">int</span> <span class="identifier">Rotation</span> { <span class="keyword">get</span>; <span class="keyword">set</span>; }</pre></div></div></div><script type="text/javascript">AddLanguageTabSet("ID0EACA");</script><h4 class="subHeading">Property Value</h4>Type: <a href="http://msdn2.microsoft.com/en-us/library/td2s409d" target="_blank">Int32</a></div><div class="collapsibleAreaRegion" id="seeAlsoSection"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID2RB')" onkeypress="SectionExpandCollapse_CheckKey('ID2RB', event)" tabindex="0"><img id="ID2RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />See Also</span></div><div id="ID2RBSection" class="collapsibleSection"><h4 class="subHeading">Reference</h4><div class="seeAlsoStyle"><a href="66013d9b-4126-7d65-05bb-94eb9d134be6.htm">Sprite Class</a></div><div class="seeAlsoStyle"><a href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm">SpriteLibrary Namespace</a></div></div></div></div><div id="pageFooter" class="pageFooter"> </div></body></html>