Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Image i = new Image();
BitmapImage src = new BitmapImage();
src.BeginInit();
src.UriSource = new Uri("Truck.jpg", UriKind.Relative);
src.EndInit();
i.Source = src;
i.Stretch = Stretch.Uniform;
int q = src.PixelHeight; // Image loads here
stackPanel1.Children.Add(i);

above is the code i am trying to load in My WPF panel

my main window consist of som 3d model but i am unabel to do this please help me out..
Posted
Comments
Ron Beyer 19-Nov-13 9:02am    
What does your code have to do with a 3D model? I'm not getting where the 3D part comes in...
rahuls1 19-Nov-13 9:04am    
i a=have constructed to 3 d cylinder and diplaying that in my main window..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900