Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
Question.NET Assemblies for Accpac Pin
Illegal Operation21-May-08 17:36
Illegal Operation21-May-08 17:36 
QuestionCloning Pin
ADTC#21-May-08 17:26
ADTC#21-May-08 17:26 
AnswerRe: Cloning Pin
Ennis Ray Lynch, Jr.21-May-08 17:37
Ennis Ray Lynch, Jr.21-May-08 17:37 
QuestionRe: Cloning Pin
ADTC#21-May-08 17:41
ADTC#21-May-08 17:41 
AnswerRe: Cloning Pin
Ennis Ray Lynch, Jr.21-May-08 17:48
Ennis Ray Lynch, Jr.21-May-08 17:48 
QuestionSimple question on maintaining sql server's table datastructure Pin
xbiplav21-May-08 17:20
xbiplav21-May-08 17:20 
AnswerRe: Simple question on maintaining sql server's table datastructure Pin
Laddie21-May-08 19:39
Laddie21-May-08 19:39 
QuestionMerging Graphics Pin
Xmen Real 21-May-08 16:06
professional Xmen Real 21-May-08 16:06 
im trying to merge Graphics to an Image, for example : i have declared 2 Graphics variable for Global access of form, now i put this code on formsLoad event :


Graphics G = Graphics.FromImage(new Bitmap(1536, 1536));
        Graphics G1 = Graphics.FromImage(new Bitmap(1536, 1536));

private void Form1_Load(object sender, EventArgs e)
        {            
            G.DrawRectangle(Pens.Red, 0, 0, 100, 100);
            G1.DrawRectangle(Pens.Blue, 50, 50, 100, 100);
        }


now what i want that if i click on a button then G and G1 should merge with an image, so i tried to code it like this, but i stuck in it that how to merge:

Bitmap b = new Bitmap(Properties.Resources.myimage);

---what to write here---

pictureBox1.Image = b;



i read this article
its merging images not Graphics

so any idea mates ?

TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

AnswerRe: Merging Graphics Pin
Christian Graus21-May-08 16:37
protectorChristian Graus21-May-08 16:37 
AnswerRe: Merging Graphics Pin
Anthony Mushrow21-May-08 16:38
professionalAnthony Mushrow21-May-08 16:38 
GeneralRe: Merging Graphics Pin
Xmen Real 21-May-08 16:43
professional Xmen Real 21-May-08 16:43 
GeneralRe: Merging Graphics Pin
Christian Graus21-May-08 17:20
protectorChristian Graus21-May-08 17:20 
GeneralTieing data in a general DataView to a DataTable Pin
MAW3021-May-08 16:05
MAW3021-May-08 16:05 
QuestionHelp With XML Reading Pin
That Asian Guy21-May-08 14:58
That Asian Guy21-May-08 14:58 
QuestionDrop-List Pin
nelsonpaixao21-May-08 14:51
nelsonpaixao21-May-08 14:51 
AnswerRe: Drop-List Pin
Judah Gabriel Himango21-May-08 17:15
sponsorJudah Gabriel Himango21-May-08 17:15 
AnswerRe: Drop-List Pin
DaveyM6922-May-08 10:43
professionalDaveyM6922-May-08 10:43 
QuestionException Handling Pin
MarkB77721-May-08 13:57
MarkB77721-May-08 13:57 
AnswerRe: Exception Handling Pin
Christian Graus21-May-08 14:04
protectorChristian Graus21-May-08 14:04 
AnswerRe: Exception Handling Pin
Ennis Ray Lynch, Jr.21-May-08 17:43
Ennis Ray Lynch, Jr.21-May-08 17:43 
QuestionProblem with Form_Paint and using Trig Pin
RedHotFunk21-May-08 13:40
RedHotFunk21-May-08 13:40 
AnswerRe: Problem with Form_Paint and using Trig Pin
Judah Gabriel Himango21-May-08 17:14
sponsorJudah Gabriel Himango21-May-08 17:14 
QuestionHow to call a form if you know the form name only as a string variable &gt; Pin
unitecsoft21-May-08 13:27
unitecsoft21-May-08 13:27 
AnswerRe: How to call a form if you know the form name only as a string variable &gt; Pin
Judah Gabriel Himango21-May-08 13:51
sponsorJudah Gabriel Himango21-May-08 13:51 
GeneralRe: How to call a form if you know the form name only as a string variable &gt; Pin
unitecsoft21-May-08 14:46
unitecsoft21-May-08 14:46 

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.