Click here to Skip to main content
15,891,431 members
Home / Discussions / Graphics
   

Graphics

 
QuestionWin32 console programming Pin
Member 132421455-Jun-17 11:17
Member 132421455-Jun-17 11:17 
AnswerRe: Win32 console programming Pin
Richard MacCutchan5-Jun-17 21:39
mveRichard MacCutchan5-Jun-17 21:39 
QuestionLibrary for obtaining duration of video movies in various formats? Pin
kalberts23-May-17 23:03
kalberts23-May-17 23:03 
AnswerRe: Library for obtaining duration of video movies in various formats? Pin
Michael_Davies23-May-17 23:18
Michael_Davies23-May-17 23:18 
GeneralRe: Library for obtaining duration of video movies in various formats? Pin
kalberts24-May-17 0:41
kalberts24-May-17 0:41 
QuestionHow to use GDI to convert these SPRs and MAPs files to bmp files, so I can invoke LoadImage function to load the bmp files and render them on my window by invoking the BitBlt function Pin
EZCodeProject4-May-17 10:03
EZCodeProject4-May-17 10:03 
AnswerRe: How to use GDI to convert these SPRs and MAPs files to bmp files, so I can invoke LoadImage function to load the bmp files and render them on my window by invoking the BitBlt function Pin
Richard MacCutchan4-May-17 10:57
mveRichard MacCutchan4-May-17 10:57 
AnswerRe: How to use GDI to convert these SPRs and MAPs files to bmp files, so I can invoke LoadImage function to load the bmp files and render them on my window by invoking the BitBlt function Pin
Jochen Arndt4-May-17 21:29
professionalJochen Arndt4-May-17 21:29 
According to SPR files | Creatures Wiki | Fandom powered by Wikia[^] the colour values are palette indexes:
Quote:
The actual image data is simply color indexes arranged into horizontal scanlines. The mappings between color indices and 256 RGB colors is given in the PALETTE.DTA[^] file; Multiply the red, green and blue results returned by 4 to gain the full colour range.
If you don't have the palette file you can try to use the default palette provided in the link.

So you have to load the SPR file into memory, create a bitmap of the same size, and set the bitmap pixels to the RGB values retrieved from the colour table using the colour index from the SPR pixels.
GeneralRe: How to use GDI to convert these SPRs and MAPs files to bmp files, so I can invoke LoadImage function to load the bmp files and render them on my window by invoking the BitBlt function Pin
EZCodeProject5-May-17 9:25
EZCodeProject5-May-17 9:25 
GeneralRe: How to use GDI to convert these SPRs and MAPs files to bmp files, so I can invoke LoadImage function to load the bmp files and render them on my window by invoking the BitBlt function Pin
Jochen Arndt5-May-17 21:52
professionalJochen Arndt5-May-17 21:52 
QuestionUrgently need code for rotating a leaf in c language Pin
Member 1301643721-Feb-17 21:54
Member 1301643721-Feb-17 21:54 
AnswerRe: Urgently need code for rotating a leaf in c language Pin
Richard MacCutchan21-Feb-17 21:55
mveRichard MacCutchan21-Feb-17 21:55 
AnswerRe: Urgently need code for rotating a leaf in c languag e Pin
Patrice T3-Mar-17 15:14
mvePatrice T3-Mar-17 15:14 
QuestionHelp getting started Pin
SpiveyC#17-Feb-17 1:18
SpiveyC#17-Feb-17 1:18 
AnswerRe: Help getting started Pin
Pete O'Hanlon17-Feb-17 1:50
mvePete O'Hanlon17-Feb-17 1:50 
GeneralRe: Help getting started Pin
SpiveyC#19-Feb-17 22:40
SpiveyC#19-Feb-17 22:40 
QuestionDirectX9 - Problems to arrange bitmap Pin
Korowai25-Dec-16 8:54
Korowai25-Dec-16 8:54 
QuestionGetting a sense of Depth and 3D space from images Pin
Member 1233692920-Dec-16 5:19
Member 1233692920-Dec-16 5:19 
AnswerRe: Getting a sense of Depth and 3D space from images Pin
Gerry Schmitz21-Dec-16 8:41
mveGerry Schmitz21-Dec-16 8:41 
QuestionHow to extract geometry from Google Earth? Pin
Member 123369294-Oct-16 1:08
Member 123369294-Oct-16 1:08 
SuggestionRe: How to extract geometry from Google Earth? Pin
Richard MacCutchan4-Oct-16 3:48
mveRichard MacCutchan4-Oct-16 3:48 
AnswerRe: How to extract geometry from Google Earth? Pin
leon de boer18-Oct-16 9:48
leon de boer18-Oct-16 9:48 
QuestionD2D + WPF + SwapChain = ??? Pin
Max Dhom17-May-16 0:56
Max Dhom17-May-16 0:56 
QuestionHow to create complex 3d Objects with direct3d? Pin
Member 1226818310-Apr-16 6:17
Member 1226818310-Apr-16 6:17 
QuestionHow to render multiple 3D objects separately? Pin Pin
Member 1226818327-Mar-16 4:24
Member 1226818327-Mar-16 4:24 

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.