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

C#

 
QuestionCreating XML using DataSet.WriteXml, including columns containing NULL Pin
K V Sekhar26-Jan-09 17:24
K V Sekhar26-Jan-09 17:24 
AnswerRe: Creating XML using DataSet.WriteXml, including columns containing NULL Pin
PIEBALDconsult26-Jan-09 18:21
mvePIEBALDconsult26-Jan-09 18:21 
QuestionExtract data from image Pin
Member 314727926-Jan-09 16:35
Member 314727926-Jan-09 16:35 
AnswerRe: Extract data from image Pin
Vikram A Punathambekar26-Jan-09 16:40
Vikram A Punathambekar26-Jan-09 16:40 
AnswerRe: Extract data from image Pin
vaghelabhavesh26-Jan-09 16:42
vaghelabhavesh26-Jan-09 16:42 
GeneralRe: Extract data from image Pin
Member 314727926-Jan-09 18:14
Member 314727926-Jan-09 18:14 
GeneralRe: Extract data from image Pin
benjymous26-Jan-09 23:36
benjymous26-Jan-09 23:36 
QuestionChange background color of an image Pin
Xmen Real 26-Jan-09 13:52
professional Xmen Real 26-Jan-09 13:52 
i want to change the background color of an image in that way that only visible part get new background color, is there any in built function for this ? well, i tried with this but i dont know what to do next

Bitmap bmp = new Bitmap("C:\abc.png");
for (int x = 0; x < bmp.Width; x++)
{
    for (int y = 0; y < bmp.Height; y++)
    {
        Color tmp_oldColor = bmp.GetPixel(x, y);
        if (tmp_oldColor != Color.Transparent)
        {
            Color tmp_newColor = ??; // how to get new color ? Multiply, Add ?
            tmp_newColor.A = tmp_oldColor.A;
            bmp.SetPixel(x, y, tmp_newColor);
        }
    }
}


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: Change background color of an image Pin
Guffa26-Jan-09 14:03
Guffa26-Jan-09 14:03 
GeneralRe: Change background color of an image Pin
Xmen Real 26-Jan-09 14:52
professional Xmen Real 26-Jan-09 14:52 
GeneralRe: Change background color of an image Pin
Guffa26-Jan-09 19:39
Guffa26-Jan-09 19:39 
GeneralRe: Change background color of an image [modified] Pin
Xmen Real 26-Jan-09 22:09
professional Xmen Real 26-Jan-09 22:09 
AnswerRe: Change background color of an image Pin
PandemoniumPasha26-Jan-09 19:33
PandemoniumPasha26-Jan-09 19:33 
GeneralRe: Change background color of an image Pin
Xmen Real 26-Jan-09 21:57
professional Xmen Real 26-Jan-09 21:57 
QuestionDataRows with no primary key, and listbox items Pin
Lodeclaw26-Jan-09 13:27
Lodeclaw26-Jan-09 13:27 
AnswerRe: DataRows with no primary key, and listbox items Pin
Wendelius27-Jan-09 3:34
mentorWendelius27-Jan-09 3:34 
Questionswitch on computer Pin
eMOx26-Jan-09 11:11
eMOx26-Jan-09 11:11 
AnswerRe: switch on computer Pin
User 665826-Jan-09 11:13
User 665826-Jan-09 11:13 
AnswerRe: switch on computer Pin
Thomas Stockwell26-Jan-09 11:18
professionalThomas Stockwell26-Jan-09 11:18 
GeneralRe: switch on computer Pin
Garth J Lancaster26-Jan-09 11:25
professionalGarth J Lancaster26-Jan-09 11:25 
AnswerRe: switch on computer Pin
Garth J Lancaster26-Jan-09 11:22
professionalGarth J Lancaster26-Jan-09 11:22 
GeneralRe: switch on computer Pin
Mark Churchill26-Jan-09 12:57
Mark Churchill26-Jan-09 12:57 
AnswerRe: switch on computer Pin
Drew Stainton26-Jan-09 15:42
Drew Stainton26-Jan-09 15:42 
GeneralRe: switch on computer Pin
PIEBALDconsult26-Jan-09 18:06
mvePIEBALDconsult26-Jan-09 18:06 
GeneralRe: switch on computer Pin
Drew Stainton26-Jan-09 18:14
Drew Stainton26-Jan-09 18:14 

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.