I have a image and i want write text on it. After write text on image , i want move text to everywhere on screen where i like. I tried write text on image but i just can write on screen and i can't move it. Can you help me. Thank All :)) And this is my code :
WriteableBitmap wb;
wb = new WriteableBitmap((BitmapSource)ImgZoom.Source);
TextBlock tb = new TextBlock();
tb.Text = Txt.Text;
tb.TextWrapping = TextWrapping.Wrap;
tb.Foreground = new SolidColorBrush(Colors.Black);
tb.FontSize = 70;
tb.FontWeight = FontWeights.Bold;
wb.Render(tb, new TranslateTransform() { X = 25, Y = 191 });
wb.Invalidate();
You have one image and you want to write text on it and then move text to everywhere. Then hope so this code will help you.
For more about this code please refer this link manipulation events for Windows Phone 8