Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: C# WPF HWND problems  (Read 328 times)
adeebm
Community Member
*
Posts: 21


« on: July 15, 2008, 03:26:31 PM »

I've been using truevision in winforms for a while and just made the switch to wpf. Everything works except rendering. Because truevision requires a handle to render I used a hack to extract the handle from the wpf windows. The problem is, because of wpf's rendering technique thing rendered to the handle go on top so all my controls are covered. Controls in wpf don't have handles so I cant render to an image(picturebox). I tried using interop to render to a winforms control, but because of wpf it still covers all the control(Interop control are always on top) I even tried having the winforms picturebox hidden, rendering then capturing the picture and copying to a wpf image but it comes up black. Has anyone used truevision with wpf before? Maybe if i knew how truevision rendered to the HWND i could get the image. or is there a way for truevision to render to a bitmap or something?

--Adeeb
Logged
adeebm
Community Member
*
Posts: 21


« Reply #1 on: July 17, 2008, 01:43:00 PM »

Anyone? It kind of urgent...
Logged
Raine
Customers
Community Member
*****
Posts: 1090


« Reply #2 on: July 18, 2008, 04:54:36 PM »

I think you'll get far more results over at codeproject.com, I'm sure one of the WPF gurus has your solution...
Logged

adeebm
Community Member
*
Posts: 21


« Reply #3 on: July 19, 2008, 02:06:02 PM »

I posted here because I'm wondering if truevision has another way to render, like to a bitmap?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks