Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i see native code? Pin
PIEBALDconsult29-Jul-09 7:03
mvePIEBALDconsult29-Jul-09 7:03 
AnswerRe: How can i see native code? Pin
Eddy Vluggen29-Jul-09 3:57
professionalEddy Vluggen29-Jul-09 3:57 
AnswerRe: How can i see native code? Pin
frommi29-Jul-09 4:08
frommi29-Jul-09 4:08 
QuestionRe: How can i see native code? Pin
Eddy Vluggen29-Jul-09 4:34
professionalEddy Vluggen29-Jul-09 4:34 
AnswerRe: How can i see native code? Pin
frommi29-Jul-09 4:51
frommi29-Jul-09 4:51 
GeneralRe: How can i see native code? Pin
Eddy Vluggen29-Jul-09 6:05
professionalEddy Vluggen29-Jul-09 6:05 
Questionimage manipulation Pin
strife1929-Jul-09 2:46
strife1929-Jul-09 2:46 
AnswerRe: image manipulation Pin
musefan29-Jul-09 2:58
musefan29-Jul-09 2:58 
strife19 wrote:
and also, is it possible to insert images using the paint event??


Yes, I would recommend using the paint event and a panel.

So I am assuming you have a load of images (for each part of the character) that you want to effectively place on top of each other?

Create a number of Class Level Image Objects...

Image Hair;
Image Face;
Image Body;
//etc...


Set the Images with whatever method you want, example...

Hair = ImageListHair.Images[2];
//etc...
PanelMain.Invalidate();//cause panel to paint itself


Then in paint event draw them on the panel...

void PanelMainPaint(object sender, PaintEventArgs e)
{
   //draw items from back to front
   //draw body
   e.Graphics.DrawImage(Body, xPos, yPos, width, height);//
   //draw other items...
}


...Hope that makes sense?

This is a very basic idea, you could, and probably should, have a Character class with properties for each of the different body parts and a method that draws the character by taking a Graphics object as a parameter.

Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: image manipulation Pin
strife1929-Jul-09 3:26
strife1929-Jul-09 3:26 
QuestionCapturing screenshots from games Pin
SimpleData29-Jul-09 1:55
SimpleData29-Jul-09 1:55 
AnswerRe: Capturing screenshots from games Pin
leckey29-Jul-09 4:59
leckey29-Jul-09 4:59 
GeneralRe: Capturing screenshots from games Pin
SimpleData29-Jul-09 5:13
SimpleData29-Jul-09 5:13 
GeneralRe: Capturing screenshots from games Pin
leckey29-Jul-09 7:16
leckey29-Jul-09 7:16 
GeneralRe: Capturing screenshots from games Pin
SimpleData29-Jul-09 7:25
SimpleData29-Jul-09 7:25 
GeneralRe: Capturing screenshots from games Pin
leckey29-Jul-09 14:23
leckey29-Jul-09 14:23 
GeneralRe: Capturing screenshots from games Pin
SimpleData29-Jul-09 23:26
SimpleData29-Jul-09 23:26 
QuestionTimer interval not change while running the windows service in C# Pin
Rajesh_K_Sharma29-Jul-09 1:17
Rajesh_K_Sharma29-Jul-09 1:17 
AnswerRe: Timer interval not change while running the windows service in C# Pin
Ashfield29-Jul-09 1:28
Ashfield29-Jul-09 1:28 
AnswerRe: Timer interval not change while running the windows service in C# Pin
PIEBALDconsult29-Jul-09 5:00
mvePIEBALDconsult29-Jul-09 5:00 
GeneralRe: Timer interval not change while running the windows service in C# Pin
Rajesh_K_Sharma29-Jul-09 23:29
Rajesh_K_Sharma29-Jul-09 23:29 
Questionset a font for a TextBox / c# [modified] Pin
made in 4429-Jul-09 1:13
made in 4429-Jul-09 1:13 
AnswerRe: set a font for a TextBox / c# Pin
stancrm29-Jul-09 1:38
stancrm29-Jul-09 1:38 
GeneralRe: set a font for a TextBox / c# Pin
made in 4430-Jul-09 3:03
made in 4430-Jul-09 3:03 
GeneralRe: set a font for a TextBox / c# Pin
stancrm30-Jul-09 3:14
stancrm30-Jul-09 3:14 
GeneralRe: set a font for a TextBox / c# Pin
made in 4430-Jul-09 6:25
made in 4430-Jul-09 6:25 

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.