Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

wpf inside d3d

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 02-05-2007   #1 (permalink)
Natarius
Guest


 

wpf inside d3d

hi,
at my development team we are also trying to get wpf to render on a
d3d surface...if we don't find a way we simply can't use it...that
would be a real pitty!

what we curently are trying to do, is to open a wpf form in background
(behind our fullscreen d3d device), grab the frames rendered to the
desktop (via screenshot methods and/or print methods) and copy them
into texture buffer!

lets see if it works...but we would prefer a cleaner solution provided
by the wpf api itself!

greets

Matthias

ps: another idea was to steal the surface from the wpf device at low
level on driver/gpu basis...that would be a real hack!


My System SpecsSystem Spec
Old 02-05-2007   #2 (permalink)
Natarius
Guest


 

Re: wpf inside d3d

On 5 Feb., 19:03, "Natarius" <m...@42mediagroup.com> wrote:
> hi,
> at my development team we are also trying to get wpf to render on a
> d3d surface...if we don't find a way we simply can't use it...that
> would be a real pitty!
>
> what we curently are trying to do, is to open a wpf form in background
> (behind our fullscreen d3d device), grab the frames rendered to the
> desktop (via screenshot methods and/or print methods) and copy them
> into texture buffer!
>
> lets see if it works...but we would prefer a cleaner solution provided
> by the wpf api itself!
>
> greets
>
> Matthias
>
> ps: another idea was to steal the surface from the wpf device at low
> level on driver/gpu basis...that would be a real hack!


maybe someone here has a better idea!?

My System SpecsSystem Spec
Old 02-08-2007   #3 (permalink)
Natarius
Guest


 

Re: wpf inside d3d

On Feb 5, 7:05 pm, "Natarius" <m...@42mediagroup.com> wrote:
> On 5 Feb., 19:03, "Natarius" <m...@42mediagroup.com> wrote:
>
>
>
>
>
> > hi,
> > at my development team we are also trying to get wpf to render on a
> > d3d surface...if we don't find a way we simply can't use it...that
> > would be a real pitty!

>
> > what we curently are trying to do, is to open a wpf form in background
> > (behind our fullscreen d3d device), grab the frames rendered to the
> > desktop (via screenshot methods and/or print methods) and copy them
> > into texture buffer!

>
> > lets see if it works...but we would prefer a cleaner solution provided
> > by the wpf api itself!

>
> > greets

>
> > Matthias

>
> > ps: another idea was to steal the surface from the wpf device at low
> > level on driver/gpu basis...that would be a real hack!

>
> maybe someone here has a better idea!?- Hide quoted text -
>
> - Show quoted text -


anyone!?

My System SpecsSystem Spec
Old 02-08-2007   #4 (permalink)
Jordan Parker [MSFT]
Guest


 

Re: wpf inside d3d

The best you can do is render the WPF content to a RenderTargetBitmap, which
derives from BitmapSource, and use CopyPixels to read the result. Note that
everything in the RTB will be rendered in software and you'll be doing a
software copy, of course. There is no way for you to go from a hardware WPF
surface -> hardware D3D surface.

Jordan

"Natarius" <mw@42mediagroup.com> wrote in message
news:1170698746.053606.307510@v45g2000cwv.googlegroups.com...
> On 5 Feb., 19:03, "Natarius" <m...@42mediagroup.com> wrote:
>> hi,
>> at my development team we are also trying to get wpf to render on a
>> d3d surface...if we don't find a way we simply can't use it...that
>> would be a real pitty!
>>
>> what we curently are trying to do, is to open a wpf form in background
>> (behind our fullscreen d3d device), grab the frames rendered to the
>> desktop (via screenshot methods and/or print methods) and copy them
>> into texture buffer!
>>
>> lets see if it works...but we would prefer a cleaner solution provided
>> by the wpf api itself!
>>
>> greets
>>
>> Matthias
>>
>> ps: another idea was to steal the surface from the wpf device at low
>> level on driver/gpu basis...that would be a real hack!

>
> maybe someone here has a better idea!?
>


My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
CD Ejecting with CD inside Kyogre1940 General Discussion 4 08-12-2008 03:59 AM
change permission on all files inside a folder or hundreds of file inside a folder Anthony B Vista security 2 12-28-2007 04:26 AM
Index inside ZIP?? Julian Vista file management 1 06-16-2007 01:23 AM
Index inside ZIP?? Julian Vista file management 0 06-14-2007 10:25 AM
this is what is inside the Retailboxes smartie Vista General 13 01-27-2007 10:36 PM


Vistax64.com 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 2005-2008

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 47 48 49 50 51