Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
QuestionSocketPermission usage? Pin
Dilys22-Feb-04 16:58
Dilys22-Feb-04 16:58 
GeneralOne question about drawing rectangles. Pin
weihua99@263.net22-Feb-04 13:58
weihua99@263.net22-Feb-04 13:58 
GeneralRe: One question about drawing rectangles. Pin
Corinna John22-Feb-04 20:43
Corinna John22-Feb-04 20:43 
GeneralMonitoring Activation Count Pin
kimsangwoo22-Feb-04 13:50
kimsangwoo22-Feb-04 13:50 
Questionhow to find out how much graphics card memory and how much RAM I have? Pin
SIDDHARTH_JAIN22-Feb-04 10:01
SIDDHARTH_JAIN22-Feb-04 10:01 
AnswerRe: how to find out how much graphics card memory and how much RAM I have? Pin
Mazdak22-Feb-04 11:19
Mazdak22-Feb-04 11:19 
GeneralListView with Windows Control Library Pin
Snowjim22-Feb-04 6:51
Snowjim22-Feb-04 6:51 
GeneralWorking with pixels and palette Pin
Stephane David22-Feb-04 5:24
Stephane David22-Feb-04 5:24 
Hello,

I'm trying to program a "clone" of civilization III, using only C# and GDI+ (kind of exercice to learn).

I've manage to make a functional map and map editor, and I'm trying to animate the sprites.

It works, except for two things : shadows and player color.

My animation are 256 colors storyboard. I know that the last 20 indexes are used for shadows.

Question 1: how can I know with C# and GDI+ what is the index in the palette of a pixel?
The GetPixel function gives the color, not the index.

Question 2 : How can I use an alphablending effect, but only on some indexes of the palette? Is it possible?

Question 3 : for player color, how can I replace the 10th index color in the palette by another color? Supposing player color is the 10th index of course.

Thanks
GeneralRe: Working with pixels and palette Pin
Heath Stewart23-Feb-04 9:29
protectorHeath Stewart23-Feb-04 9:29 
GeneralRe: Working with pixels and palette Pin
Stephane David23-Feb-04 19:48
Stephane David23-Feb-04 19:48 
GeneralRe: Working with pixels and palette Pin
Stephane David23-Feb-04 21:55
Stephane David23-Feb-04 21:55 
GeneralRe: Working with pixels and palette Pin
Heath Stewart24-Feb-04 3:03
protectorHeath Stewart24-Feb-04 3:03 
GeneralRe: Working with pixels and palette Pin
Stephane David24-Feb-04 3:40
Stephane David24-Feb-04 3:40 
GeneralEject DVD-drive Pin
Stefan Troschuetz22-Feb-04 4:53
Stefan Troschuetz22-Feb-04 4:53 
GeneralRe: Eject DVD-drive Pin
Mazdak22-Feb-04 5:03
Mazdak22-Feb-04 5:03 
General[COM]DrCOM-Monitor Tool and more?[COM] Pin
kenokabe22-Feb-04 3:17
kenokabe22-Feb-04 3:17 
GeneralRe: [COM]DrCOM-Monitor Tool and more?[COM] Pin
Mazdak22-Feb-04 4:11
Mazdak22-Feb-04 4:11 
GeneralRe: [COM]DrCOM-Monitor Tool and more?[COM] Pin
kenokabe22-Feb-04 14:18
kenokabe22-Feb-04 14:18 
GeneralRe: [COM]DrCOM-Monitor Tool and more?[COM] Pin
Mazdak22-Feb-04 19:01
Mazdak22-Feb-04 19:01 
GeneralRe: [COM]DrCOM-Monitor Tool and more?[COM] Pin
kenokabe22-Feb-04 19:16
kenokabe22-Feb-04 19:16 
GeneralDataGrid, DataSet with DataTable and Sort Pin
gatemaster9922-Feb-04 1:40
gatemaster9922-Feb-04 1:40 
GeneralRe: DataGrid, DataSet with DataTable and Sort Pin
gatemaster9922-Feb-04 22:31
gatemaster9922-Feb-04 22:31 
GeneralRe: DataGrid, DataSet with DataTable and Sort Pin
Gigiwig23-Feb-04 11:56
Gigiwig23-Feb-04 11:56 
QuestionListViewItem.SubItems.BackColor ??? Pin
sps-itsec4622-Feb-04 0:54
sps-itsec4622-Feb-04 0:54 
AnswerRe: ListViewItem.SubItems.BackColor ??? Pin
ian mariano22-Feb-04 10:59
ian mariano22-Feb-04 10:59 

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.