CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    1,355

    [RESOLVED] Directx 9: getting image size depending on resolution?

    seems that the image size depends on Directx 9 resolution.
    but how can i calculate it?
    i get the image size from original image file. but the resolution window\Directx is more big. so how can i calculate the image size depending on resolution?

  2. #2
    Join Date
    Apr 2009
    Posts
    1,355

    Re: Directx 9: getting image size depending on resolution?

    i was getting the image size from: D3DXGetImageInfoFromFile().
    but what i need is the texture size:
    Code:
    D3DSURFACE_DESC desc;        sprTexture->GetLevelDesc(0, &desc);
    thank you so much for all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured