Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - How to get the visual's snapshot in wpf? Do not use RenderTargetBitmap

 
 
Old 10-20-2006   #1 (permalink)
wedde


 
 

How to get the visual's snapshot in wpf? Do not use RenderTargetBitmap

I can use RenderTargetBitmap to get the visual's snapshot, but
RenderTargetBitmap use software render only. So it is very slow. When I
get a snapshot of a complicate visual element, it may cost 0.7s. Does
anyone has the faster way to do this?


My System SpecsSystem Spec
Old 10-24-2006   #2 (permalink)
Adam Smith [MS]


 
 

Re: How to get the visual's snapshot in wpf? Do not use RenderTargetBitmap

If you want the contents of the Visual to be a bitmap you can manipulate, it
will have to be in SW eventually (since you aren't allowed to manipulate
video memory), and RenderTargetBitmap is the way to go. If your scenario
doesn't involve manipulating/saving the bits, it's possible there are other
solutions using VisualBrush - can you describe what you're doing with the
output of the RenderTargetBitmap?

-Adam Smith [MS]

"wedde" <weddewu@gmail.com> wrote in message
news:1161339501.677869.240030@f16g2000cwb.googlegroups.com...
>I can use RenderTargetBitmap to get the visual's snapshot, but
> RenderTargetBitmap use software render only. So it is very slow. When I
> get a snapshot of a complicate visual element, it may cost 0.7s. Does
> anyone has the faster way to do this?
>



My System SpecsSystem Spec
Old 11-08-2006   #3 (permalink)
wedde


 
 

Re: How to get the visual's snapshot in wpf? Do not use RenderTargetBitmap

Thanks a lot for your kindly reply!
I need not manipulate the bitmap. I display the map on my custom
control with many DrawingVisual instances(because I need interact with
each map elements) and I want the user can drag the map to relocate it.
For performance issue, I need a snapshot of my custom control then I
can move the snapshot on my custom control with the mouse.
The VisualBrush will track the changes of the custom control, so it
can't be used on this senario. In fact when I try to use the
VisualBrush, the brush only be filled with the custom control's
background.
I knew these two way only, could you help me? Thank you very much!

"Adam Smith [MS] дµÀ£º
"
> If you want the contents of the Visual to be a bitmap you can manipulate,it
> will have to be in SW eventually (since you aren't allowed to manipulate
> video memory), and RenderTargetBitmap is the way to go. If your scenario
> doesn't involve manipulating/saving the bits, it's possible there are other
> solutions using VisualBrush - can you describe what you're doing with the
> output of the RenderTargetBitmap?
>
> -Adam Smith [MS]
>
> "wedde" <weddewu@gmail.com> wrote in message
> news:1161339501.677869.240030@f16g2000cwb.googlegroups.com...
> >I can use RenderTargetBitmap to get the visual's snapshot, but
> > RenderTargetBitmap use software render only. So it is very slow. When I
> > get a snapshot of a complicate visual element, it may cost 0.7s. Does
> > anyone has the faster way to do this?
> >


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Accidental Snapshot Merge Virtual Server
Snapshot Vista General
Snapshot on Mediaplayer Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46