Skip to main content
Advice
0 votes
0 replies
23 views

This is just a PSA regarding an extremely annoying issue I've solved for myself. In WPF, if you have a Viewport3D and want to export it as an image, you'll probably want to use RenderTargetBitmap. If ...
Frederik IH's user avatar
0 votes
1 answer
62 views

I have ListView, which displays some pictures. Not all pictures are visible on screen (in Window). I want to make something like 'contact sheet' - all pictures. I got ScrollViewer from ListView, and ...
Piotr Karocki's user avatar
0 votes
1 answer
57 views

When using RenderTargetBitmap to generate a PNG file from a TextBlock that is a child of a Canvas, the text is stretched to match the width of the TextBlock. The TextBlock has a TextAlignment set to '...
Bob's user avatar
  • 1
-1 votes
1 answer
91 views

The question has now been answered in a comment. Original question: The following is not enough: this.Background = Brushes.Yellow; RenderTargetBitmap bmp = new RenderTargetBitmap(...); Measure(...); ...
ispiro's user avatar
  • 28k
0 votes
1 answer
121 views

I've been working on migrating legacy ASP.Net/C# system to Azure. Initially just changing the minimal amount possible, but part of that is moving to updated .Net framework (2/3/3.5 => 4.7+) Part of ...
Daf's user avatar
  • 61
1 vote
1 answer
197 views

I want to use RenderTargetBitmap to just capture the visual area in UWP app. But the result is to capture the full element image in canvas that include offscreen's part. This is my application Image. ...
Zack's user avatar
  • 25
1 vote
1 answer
111 views

I wrote a function to rasterize stroke data from an InkCanvas, but for some reason renderBMP.RenderAsync(...) hangs indefinitely. Any advice? RenderTargetBitmap rasterizePage(int pageNumber) { ...
Michael Sohnen's user avatar
0 votes
1 answer
156 views

Is there any way to cancel a possibly long running render operation in WPF? In my case, I want to render a complex control (in a non-UI-thread) to a bitmap. var bitmap = new RenderTargetBitmap((int)...
LionAM's user avatar
  • 1,431
1 vote
0 answers
86 views

Description: Need to save the specific circular portion of the image using the RenderTargetBitmap gets blank image. Steps to reproduce: Load the image control with the image. Save the image source ...
Ragul S V's user avatar
  • 139
2 votes
2 answers
1k views

I've tried a few different approaches to this, but can't seem to get a combination that works. Creating WPF app in C#, Visual Studio. System.Windows.Shapes.Polyline works really nicely to draw into a ...
xtempore's user avatar
  • 5,555
0 votes
1 answer
109 views

I am using the UWP image control. I have rotated the image to 45 degrees by applying the Rotate transform(Angle = 45) now I want to convert the rendered rotated image to stream. So I have tried the ...
Santhiya's user avatar
  • 301
4 votes
3 answers
443 views

Our .NET application has the ability to generate .png files which are screenshots of a WPF Canvas. This can be triggered from a client and handled by another of our applications (essentially something ...
Daniel F's user avatar
1 vote
0 answers
154 views

I try to save the UI elements into an image file. but we have More UI elements(like 100 list of rows). So the image quality is very poor. Is there any possibility to convert the UI elements into ...
Pandi's user avatar
  • 481
0 votes
1 answer
295 views

I'm trying to use MediaPlayerto get a frame from video as an image. MediaPlayer _mediaPlayer = new MediaPlayer(); _mediaPlayer.ScrubbingEnabled = true; _mediaPlayer.Open(new Uri("c:\\Sample.mp4&...
stef's user avatar
  • 41
1 vote
1 answer
289 views

I am working on a weekly scheduler on WPF. I took care of everything but I have a problem. RenderTargetBitmap takes an empty image of my UserControl, I also tried element.ApplyTmeplate(); it didn't ...
Ahmet Yılmaz's user avatar

15 30 50 per page
1
2 3 4 5
9