Show picture from file T21C
Posted: Wed Aug 28, 2013 10:37 am
Hi,
TA150 (T15B) ->
T21C with RunTime (WPF) -> ???
Something like this:
Thanks for reply
Regards
Joe
TA150 (T15B) ->
Code: Select all
Form form = (Form) this;
string fName = @"\FlashDrive\Project\Project Files\Design1.png";
Bitmap bMap = new Bitmap(fName);
Image img = Image.FromHbitmap(bMap.GetHbitmap());
PictureBox pb = new PictureBox();
pb.Width = 258;
pb.Height = 136;
pb.Left = 2;
pb.Top = 2;
pb.SizeMode = PictureBoxSizeMode.StretchImage;
pb.Image = img;
form.Controls.Add(pb);
Something like this:
Code: Select all
string fName = @"m:\design1.bmp"; ?
BitmapImage Design = new BitmapImage(new Uri(fName)); ?
Regards
Joe