0
我上渲染2D圖像的研究使我這個...... Spritesheet in Silverlight 這回答是不夠好但是我不想用矩形。 我認爲使用圖像類只顯示圖像更有意義..試圖瞭解上面的例子之後。我想出了以下代碼...如何像圖像類一樣使用精靈圖像?
img = new Image();
img.Source = 500x500BigHugeImage;
img.Width = 100
img.Height = 100
img.Stretch = System.Windows.Media.Stretch.None;
img.VerticalAlignment = System.Windows.VerticalAlignment.Top;
img.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
現在圖像類只顯示源圖像的左上角。 我需要通過龐大的500x500BigHugeImae以移動到 我不能定位導航。