Re: Off-screen graphics in WPF

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks, but I'm looking for the ability to write a console program with no UI
and be able to render the XAML graphics into a PNG file (part of background
processing started from a cron-type job) I think the answer is to create an
XPS document and render that into a file but if there is another way I'd love
to hear it.

john


"Hillbilly" wrote:

When we worked with the DOM using HTML/CSS/JavaScript we often
positioned --whatever-- off-screen to the left and brought --whatever-- back
into view if and when wanted by modifying its absolute position values. This
is how the SkipLinks methodology came about for Accessibility. There should
be no reason that type of little trick cannot be used with WPF.

"John Mott" <John Mott@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C285ED58-7BC3-4276-BC25-2E23EFDF9EA0@xxxxxxxxxxxxxxxx
Hi all,

I've been doing some WPF work and wondered if there is an off-screen
'canvas' that I can draw things to. I'd like to do some batch processing
where I render images into a memory area using WPF. Is there a Virtual
Canvas
or some such construct?

Thanks,


.



Relevant Pages

  • Re: Draw Line is to slow, there is anything else ?
    ... I get a nice 70 fps while the WPF version is somewhat lower ... to the fact that you're not really testing frame rate, ... I had removed the loop, so the graphics just render 266 horizontal lines and 266 vertical lines. ... As per my code sample, I change the DrawingContext each iteration and I think WPF should mark the buffer as dirty and should redraw itself but from the code observation, the screen only get updated on last iteration. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Draw Line is to slow, there is anything else ?
    ... I get a nice 70 fps while the WPF version is somewhat lower ... so the graphics just render 266 horizontal ... Assuming the screen really does change with every iteration, then perhaps it's a relevant test after all. ... how let the WPF dispatcher run between frames, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Drawing multiple custom controls in a metafile canvas.
    ... is there a way to render (without changing the rendering code) ... > a specific region of the metafile canvas? ... > - Something like a preemptive translate so that the render routine working ... > at 0,0 is really at some x,y in the MF canvas? ...
    (comp.lang.pascal.delphi.misc)
  • Re: Look mom I can do C#
    ... WPF is great for fancy and spectacular user interfaces. ... layer than Win32 HWND-based windows. ... A developer at my work, ... took a loooooooong time to render. ...
    (microsoft.public.vc.mfc)
  • Re: Java Canvas Object: how to redraw?
    ... Ed Dana wrote: ... >> then render that image ... >> to the canvas.. ... > Since it is faster to directly paint on the canvas, ...
    (comp.lang.java.gui)