Override Posted August 22, 2009 Report Share Posted August 22, 2009 Mam pytanie. Wie ktoś, jak w WinAPI wczytać pliki obrazu inne niż BMP, np. PNG, JPG. Zależy mi w szczególności na plikach PNG. Link to comment Share on other sites More sharing options...
Toster Posted August 22, 2009 Report Share Posted August 22, 2009 glowy za to nie dam ale na 90% potrzebujesz biblioteki do tego. Always Dark<br /> Link to comment Share on other sites More sharing options...
KaYou Posted August 22, 2009 Report Share Posted August 22, 2009 Environment: C, WIN32 API Most Win32 API developers use a static control (with style SS_ICON or SS_BITMAP)to load bitmap and icon files. To advance the support for more image formats, some use third-party libraries such as CXImage (as far I remember the name). Wouldn't it be better to use native control and routines to load BMP, PNG, GIF, JPEG, WMF, ICO, and EMF files in Windows programs? I hope you say yes! Note: The progrm must be linked with OLE32 and comctl32 library files. "(2b || !(2b)) == question" W. Shakespeare http://jakubniwa.pl - świat sztucznej inteligencji Link to comment Share on other sites More sharing options...
DevPort Posted August 23, 2009 Report Share Posted August 23, 2009 Jeżeli zależy Ci na Czystym WinApi, bez używania "obcych" bibliotek itp. to polecam napisać sobie ręczne wczytywanie PNG. Budowę tego i wielu innych formatów znajdziesz na stronie Janusza Ganczarskiego link Prawdziwy programista wiesza sie wraz ze swoim programem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.