Click here to Skip to main content
15,893,663 members
Home / Discussions / Graphics
   

Graphics

 
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 
Thanks to VizCoder providing confirmation that ArrayList's are indeed any type I looked at my orriginal attempt again.

All I needed to do was change the DrawImage method to..

public void DrawImage(int Image, int x, int y)
{
   ssurf.DrawFast(0,0,(Surface)al[Image-1],ImageRect,DrawFastFlags.DoNotWait);   
}


Because the ArrayList object can be of any type I had to cast it as type surface when using it
(Surface)al[Image-1]

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 
AnswerRe: Cropping Surrounding White Area Pin
Mark Salsbery1-Jun-07 5:06
Mark Salsbery1-Jun-07 5:06 
AnswerRe: Cropping Surrounding White Area Pin
Ian Shlasko1-Jun-07 7:13
Ian Shlasko1-Jun-07 7:13 
QuestionPath.IsVisible() Problem! Pin
nermsk30-May-07 11:22
nermsk30-May-07 11:22 
AnswerRe: Path.IsVisible() Problem! Pin
Mark Salsbery30-May-07 15:31
Mark Salsbery30-May-07 15:31 
GeneralRe: Path.IsVisible() Problem! Pin
nermsk30-May-07 20:29
nermsk30-May-07 20:29 
GeneralRe: Path.IsVisible() Problem! Pin
nermsk31-May-07 10:26
nermsk31-May-07 10:26 
QuestionLooking for bit depth conversion library/class Pin
Sepharo30-May-07 5:51
Sepharo30-May-07 5:51 
QuestionPhotoshop...Help Pin
friendship30-May-07 0:37
friendship30-May-07 0:37 
AnswerRe: Photoshop...Help Pin
bigphish10-Jun-07 20:11
bigphish10-Jun-07 20:11 
AnswerRe: Photoshop...Help Pin
Drew Stainton17-Jul-07 19:55
Drew Stainton17-Jul-07 19:55 
Question8 bit bmp Pin
himuskanhere29-May-07 20:56
himuskanhere29-May-07 20:56 
QuestionRe: 8 bit bmp Pin
Mark Salsbery30-May-07 5:11
Mark Salsbery30-May-07 5:11 
AnswerRe: 8 bit bmp Pin
himuskanhere31-May-07 23:00
himuskanhere31-May-07 23:00 

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.