Click here to Skip to main content
15,904,024 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating Custom Message using data from Excel Pin
OriginalGriff28-Sep-17 20:26
mveOriginalGriff28-Sep-17 20:26 
GeneralRe: Creating Custom Message using data from Excel Pin
MRMOSES28-Sep-17 21:41
MRMOSES28-Sep-17 21:41 
GeneralRe: Creating Custom Message using data from Excel Pin
OriginalGriff28-Sep-17 22:10
mveOriginalGriff28-Sep-17 22:10 
QuestionSending a Url and querystring XML and getting a response, USPS Rate Request. Pin
jkirkerx28-Sep-17 7:28
professionaljkirkerx28-Sep-17 7:28 
AnswerRe: Sending a Url and querystring XML and getting a response, USPS Rate Request. Pin
jkirkerx28-Sep-17 7:42
professionaljkirkerx28-Sep-17 7:42 
GeneralRe: Sending a Url and querystring XML and getting a response, USPS Rate Request. Pin
jkirkerx28-Sep-17 8:40
professionaljkirkerx28-Sep-17 8:40 
GeneralI got this now Pin
jkirkerx28-Sep-17 10:07
professionaljkirkerx28-Sep-17 10:07 
QuestionHow can I add a value for each pixel Pin
WI54M27-Sep-17 19:18
WI54M27-Sep-17 19:18 
hi thnx for helping me in past question

so i Reach here [ex image]
by using this code
C#
private void Form1_Load(object sender, EventArgs e)
       {
          string img = @"D:\Capture1.PNG";
          Bitmap bmp = new Bitmap(img);
          pictureBox1.Image = Image.FromFile(img);
          int w = bmp.Width;
          int h = bmp.Height;

          int f = 1;
          Random rr = new Random();
           for (int y=0;y < h ; y++)
           {
               for (int x=0 ; x < w ; x++)
               {

                   int a = rr.Next(256);
                   int r = rr.Next(256);
                   int g = rr.Next(256);
                   int b = rr.Next(256);

                   bmp.SetPixel(x, y, Color.FromArgb(a, r, g, b));


               }
           }
           pictureBox2.Image =bmp;
         }


but the problem is the code chose random value to each pixel
how can i chose the value of the pixel and not make it random ?
AnswerRe: How can I add a value for each pixel Pin
OriginalGriff27-Sep-17 19:41
mveOriginalGriff27-Sep-17 19:41 
QuestionExporting the placeholder and its graph to excel sheet Pin
Atul Naik27-Sep-17 8:46
Atul Naik27-Sep-17 8:46 
Questionhow to change each pixel color Pin
WI54M27-Sep-17 1:46
WI54M27-Sep-17 1:46 
AnswerRe: how to change each pixel color Pin
Dave Kreskowiak27-Sep-17 1:47
mveDave Kreskowiak27-Sep-17 1:47 
GeneralRe: how to change each pixel color Pin
WI54M27-Sep-17 18:56
WI54M27-Sep-17 18:56 
AnswerRe: how to change each pixel color Pin
Eddy Vluggen27-Sep-17 1:52
professionalEddy Vluggen27-Sep-17 1:52 
SuggestionRe: how to change each pixel color Pin
Richard Deeming27-Sep-17 2:56
mveRichard Deeming27-Sep-17 2:56 
AnswerRe: how to change each pixel color Pin
Pete O'Hanlon27-Sep-17 3:13
mvePete O'Hanlon27-Sep-17 3:13 
Questiontest Pin
Marinel7727-Sep-17 0:29
Marinel7727-Sep-17 0:29 
AnswerRe: Need help with school projects Pin
Pete O'Hanlon27-Sep-17 0:33
mvePete O'Hanlon27-Sep-17 0:33 
QuestionRe: Need help with school projects Pin
Eddy Vluggen27-Sep-17 0:46
professionalEddy Vluggen27-Sep-17 0:46 
QuestionProblem debugging c# assembly (class library) Pin
PankajB26-Sep-17 18:24
PankajB26-Sep-17 18:24 
AnswerRe: Problem debugging c# assembly (class library) Pin
Eddy Vluggen26-Sep-17 23:13
professionalEddy Vluggen26-Sep-17 23:13 
QuestionC# .Select Method Pin
Bootzilla3326-Sep-17 10:18
Bootzilla3326-Sep-17 10:18 
AnswerRe: C# .Select Method Pin
Pete O'Hanlon26-Sep-17 21:05
mvePete O'Hanlon26-Sep-17 21:05 
GeneralRe: C# .Select Method Pin
Bootzilla3327-Sep-17 4:01
Bootzilla3327-Sep-17 4:01 
GeneralRe: C# .Select Method Pin
Pete O'Hanlon27-Sep-17 4:07
mvePete O'Hanlon27-Sep-17 4:07 

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.