Click here to Skip to main content
15,901,505 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: OpenGL alpha transparency Pin
El Corazon21-Jun-07 9:30
El Corazon21-Jun-07 9:30 
GeneralRe: OpenGL alpha transparency Pin
XTAL25621-Jun-07 18:00
XTAL25621-Jun-07 18:00 
QuestionProblem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 7:47
Sepharo4-Jun-07 7:47 
AnswerRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 8:05
Mark Salsbery4-Jun-07 8:05 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 8:26
Sepharo4-Jun-07 8:26 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 8:37
Mark Salsbery4-Jun-07 8:37 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 8:41
Sepharo4-Jun-07 8:41 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 8:59
Sepharo4-Jun-07 8:59 
Here's a picture of my actual breakpoints...

http://wwwp.mirror.waffleimages.com/files/13/13e214fd705683442d70081bb7c901230aac708a.png

With the wya they are setup in the picture it takes a while to manually step through 256times but it reaches the end eventually and all is fine... But only because it took some time to do manually.

If I remove the breakpoints on i < bmp.Palette.Entries.Length; and i++; the stall happens directly between int i=0; and return rgbArray;

There isn't any further question in my mind that something is going wrong during that palette copying inside that loop. But the real question is why? This machine is a beast and the rest of the code is fine just for somereason 256 iterations of
rgbArray[i].rgbRed  = bmp.Palette.Entries[i].R;<br />
                rgbArray[i].rgbGreen= bmp.Palette.Entries[i].G;<br />
                rgbArray[i].rgbBlue = bmp.Palette.Entries[i].B;

stalls the program for 30 seconds or so.
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:22
Mark Salsbery4-Jun-07 9:22 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:16
Mark Salsbery4-Jun-07 9:16 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 9:23
Sepharo4-Jun-07 9:23 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:28
Mark Salsbery4-Jun-07 9:28 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 9:40
Sepharo4-Jun-07 9:40 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:44
Mark Salsbery4-Jun-07 9:44 
GeneralRe: Problem extracting full palette from 8bit image Pin
Mark Salsbery4-Jun-07 9:36
Mark Salsbery4-Jun-07 9:36 
GeneralRe: Problem extracting full palette from 8bit image Pin
Sepharo4-Jun-07 9:42
Sepharo4-Jun-07 9:42 
QuestionWinamp like credits? Pin
Stevie4-Jun-07 1:05
Stevie4-Jun-07 1:05 
QuestionHow to create a dynamic array of direct draw surfaces [modified] Pin
GTaylor552-Jun-07 15:50
GTaylor552-Jun-07 15:50 
AnswerRe: A Workaround solution Pin
GTaylor554-Jun-07 0:33
GTaylor554-Jun-07 0:33 
GeneralRe: A Workaround solution Pin
XTAL2564-Jun-07 2:47
XTAL2564-Jun-07 2:47 
AnswerRe: The Solution Pin
GTaylor5514-Jun-07 0:53
GTaylor5514-Jun-07 0:53 
QuestionBlank Image Detection Pin
JoeGonzalez2-Jun-07 7:24
JoeGonzalez2-Jun-07 7:24 
Questionpbuffers [modified] Pin
XTAL2561-Jun-07 14:59
XTAL2561-Jun-07 14:59 
QuestionNewbie Camera Math Question Pin
joshp12171-Jun-07 9:05
joshp12171-Jun-07 9:05 
QuestionCropping Surrounding White Area Pin
zubair_ahmed31-May-07 20:56
zubair_ahmed31-May-07 20:56 

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.