I want to canvas draw and scale texture from the texture center.
the code above ,always make texture extend to right and down.Is there a good way scale the texture from the texture center?Code:scaleSize = 1; ...... Canvas.DrawTile(Images[Idx], width* scaleSize, height* scaleSize,ImagesUVs[Idx].U, ImagesUVs[Idx].V, ImagesUVs[Idx].UL, ImagesUVs[Idx].VL, DrawColor,true); scaleSize += 0.01; if(scaleSize >2) { scaleSize = 1; }



Reply With Quote




Bookmarks