Sign in to follow this  

surface.getGraphics() fails with invalid call exception

This topic is 3557 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to write into a texture using GDI calls under MDX and I can't seem to get getGraphics to return a vaild Graphics object. Here's what I'm currently doing - does any of this look out of place? Texture texture = new Texture(device, 64, 64, 1, Usage.None, Format.R8G8B8, Pool.Managed); Surface surface = texture.GetSurfaceLevel(0); Graphics surface_graphics = surface.GetGraphics(); Any ideas? Thanks, Vance [Edited by - soudersv on March 22, 2008 5:08:30 PM]

Share this post


Link to post
Share on other sites
I'm running this in MDX on a Motorola Q - I don't think there are debug runtimes for that platform.

Any other ideas?

Thanks,
Vance

[Edited by - soudersv on March 22, 2008 5:43:11 PM]

Share this post


Link to post
Share on other sites

This topic is 3557 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this