Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Picture control Pin
Hakan Bulut28-Dec-07 5:58
Hakan Bulut28-Dec-07 5:58 
GeneralRe: Picture control Pin
Hamid_RT30-Dec-07 7:15
Hamid_RT30-Dec-07 7:15 
GeneralRe: Picture control Pin
Hakan Bulut30-Dec-07 23:30
Hakan Bulut30-Dec-07 23:30 
GeneralRe: Picture control Pin
Hamid_RT31-Dec-07 19:34
Hamid_RT31-Dec-07 19:34 
QuestionRetrieve Width and Height of a .PNG file Pin
Hanan88827-Dec-07 7:17
Hanan88827-Dec-07 7:17 
GeneralRe: Retrieve Width and Height of a .PNG file Pin
Mark Salsbery27-Dec-07 8:28
Mark Salsbery27-Dec-07 8:28 
GeneralThanks Pin
Hanan88829-Dec-07 23:17
Hanan88829-Dec-07 23:17 
GeneralRe: Thanks Pin
Mark Salsbery30-Dec-07 10:39
Mark Salsbery30-Dec-07 10:39 
Hanan888 wrote:
Do you think using this (only about 10 times during the init stage of my application)
can create any significant overhead ?


It's less efficient than just parsing the file for the info since the
entire image is loaded into memory. If you're going to use the
loaded image anyway then it doesn't matter - loading once at the beginning is
way better than reloading every time you need them.

Hanan888 wrote:
I wasn't able to find how to retrieve that info from D3DXCreateTextureFromFile


I believe IDirect3DTexture9::GetLevelDesc() should give you this info.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Thanks Pin
Hanan88830-Dec-07 22:43
Hanan88830-Dec-07 22:43 
GeneralLinker troubles Pin
Dee Olutayo27-Dec-07 7:00
Dee Olutayo27-Dec-07 7:00 
GeneralRe: Linker troubles Pin
CPallini27-Dec-07 7:36
mveCPallini27-Dec-07 7:36 
GeneralRe: Linker troubles Pin
Dee Olutayo27-Dec-07 12:42
Dee Olutayo27-Dec-07 12:42 
GeneralRetrive JavaScript data from C++ Pin
theallmightycpd27-Dec-07 5:26
theallmightycpd27-Dec-07 5:26 
GeneralRe: Retrive JavaScript data from C++ Pin
Hakan Bulut28-Dec-07 7:25
Hakan Bulut28-Dec-07 7:25 
Generalput try...catch... in a loop Pin
followait27-Dec-07 4:03
followait27-Dec-07 4:03 
GeneralRe: put try...catch... in a loop Pin
CPallini27-Dec-07 4:19
mveCPallini27-Dec-07 4:19 
QuestionRe: put try...catch... in a loop Pin
David Crow27-Dec-07 4:21
David Crow27-Dec-07 4:21 
GeneralRe: put try...catch... in a loop Pin
followait27-Dec-07 4:30
followait27-Dec-07 4:30 
GeneralRe: put try...catch... in a loop Pin
Maxwell Chen27-Dec-07 4:28
Maxwell Chen27-Dec-07 4:28 
Generalwhy visual studio does not optimize constructor in this case Pin
George_George27-Dec-07 2:24
George_George27-Dec-07 2:24 
GeneralRe: why visual studio does not optimize constructor in this case Pin
Maximilien27-Dec-07 4:03
Maximilien27-Dec-07 4:03 
GeneralRe: why visual studio does not optimize constructor in this case Pin
George_George27-Dec-07 4:10
George_George27-Dec-07 4:10 
GeneralRe: why visual studio does not optimize constructor in this case Pin
Maxwell Chen27-Dec-07 4:20
Maxwell Chen27-Dec-07 4:20 
GeneralRe: why visual studio does not optimize constructor in this case Pin
George_George27-Dec-07 16:49
George_George27-Dec-07 16:49 
GeneralRe: why visual studio does not optimize constructor in this case Pin
Maxwell Chen27-Dec-07 4:11
Maxwell Chen27-Dec-07 4:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.