Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 11 Jun 2008 15:57:25 -0400,    group: microsoft.public.win32.programmer.directx.sdk        back       


Problem with surfaces..   
ok...

This isn't working, and I dont know why, when I pass the resulting
surface to StretchRectangle I get the awsome "error in application"
haha... anyway.  Is this not the right way (using .Net 3.5 runtime and
the latest DirectX Dev Kit form March) to turn a bitmap into a
surface?

 Public Function img2surface(ByVal img As Bitmap) As Direct3D.Surface
        Dim image As Direct3D.Surface
        image = New Direct3D.Surface(device, img,
Direct3D.Pool.Default)
        Return image
    End Function
date: Wed, 11 Jun 2008 15:57:25 -0400   author:   Jameson

Re: Problem with surfaces..   
Hi Jameson,

this newsgroup is really infrequently used and
you will get (if any!) mostly very lately an answer.

I recommend you to ask this question either here:

http://www.devmaster.net/engines/

or here:

Have a look at the bottom links on this articles:

http://en.wikipedia.org/wiki/DirectX
http://en.wikipedia.org/wiki/Microsoft_XNA

Hope this helps,...

Regards

Kerem


-- 
----------------------- 
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
----------------------- 
"This reply is provided as is, without warranty express or implied."
"Jameson"  schrieb im Newsbeitrag 
news:9A755EF9-6675-45A1-963F-7DBB347F9AAE@microsoft.com...
> ok...
>
> This isn't working, and I dont know why, when I pass the resulting
> surface to StretchRectangle I get the awsome "error in application"
> haha... anyway.  Is this not the right way (using .Net 3.5 runtime and
> the latest DirectX Dev Kit form March) to turn a bitmap into a
> surface?
>
> Public Function img2surface(ByVal img As Bitmap) As Direct3D.Surface
>        Dim image As Direct3D.Surface
>        image = New Direct3D.Surface(device, img,
> Direct3D.Pool.Default)
>        Return image
>    End Function
>
date: Thu, 12 Jun 2008 13:49:56 +0200   author:   Kerem G?mr?kc?

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us