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

C#

 
GeneralRe: please help Pin
Pete O'Hanlon2-Oct-07 10:56
mvePete O'Hanlon2-Oct-07 10:56 
GeneralRe: please help Pin
Colin Angus Mackay2-Oct-07 11:02
Colin Angus Mackay2-Oct-07 11:02 
GeneralRe: please help Pin
Pete O'Hanlon2-Oct-07 11:06
mvePete O'Hanlon2-Oct-07 11:06 
GeneralRe: please help Pin
Christian Graus2-Oct-07 13:12
protectorChristian Graus2-Oct-07 13:12 
GeneralRe: please help Pin
Pete O'Hanlon2-Oct-07 21:57
mvePete O'Hanlon2-Oct-07 21:57 
GeneralRe: please help Pin
karthick.n.mca3-Oct-07 4:15
karthick.n.mca3-Oct-07 4:15 
GeneralRe: please help Pin
Pete O'Hanlon3-Oct-07 4:22
mvePete O'Hanlon3-Oct-07 4:22 
QuestionSHRINKING Pin
zeeShan anSari2-Oct-07 10:25
zeeShan anSari2-Oct-07 10:25 
Hi,
suppose
bmp1 = new Bitmap(530, 335);<br />
bmp2 = new Bitmap(250, 200);

in which, bmp1 contains an image but bmp2 is empty
now,
bmp2 = new Bitmap(bmp1);
Since there are diffrence between the size of bmp1 and bmp2,so image of bmp2 losing the pixels due to the shrinking.
Am i right? i know i right.......
but i want shrink the desir pixels like
bmp1 = new Bitmap(bmp, 530, 335);<br />
bmp2 = new Bitmap(530, 335);<br />
Graphics gg = Graphics.FromImage(bmp2);<br />
p = new Pen(Color.Red, 1);<br />
for (i = 0; i < bmp1.Width; i++)<br />
{<br />
for (j = 0; j < bmp1.Height; j++)<br />
if (bmp1.GetPixel(i, j) == Color.FromArgb(255, 0, 0) && <br />
    bmp1.GetPixel(i + 1, j) == Color.FromArgb(255, 0, 0)&&<br />
    bmp1.GetPixel(i + 2, j) == Color.FromArgb(255, 0, 0)&&<br />
    bmp1.GetPixel(i + 3, j) == Color.FromArgb(255, 0, 0)&&<br />
    bmp1.GetPixel(i + 4, j) == Color.FromArgb(255, 0, 0)&&<br />
    bmp1.GetPixel(i + 5, j) == Color.FromArgb(255, 0, 0))<br />
         {<br />
           gg.DrawEllipse(p,  i,  j, 1, 1);  this.Invalidate();<br />
                        <br />
            i += 6;<br />
                                                                   }<br />


means that sense the only red pixels,if 6 pixels are in one row then change these six red pixels with the one pixel.
like
RRRRRRRRRRRBBBBRRRRRRRRRRBBBBBBBBBBBRRRRRR R=red,B=blue
R R RBBBBR R BBBBBBBBBBBR


iS it right method?is it efficeint method? for reducing the length of line of desire color.

i am confuseOMG | :OMG:

I AM WORKING ON "PLOTTER ROBOT"(FYP).

AnswerRe: SHRINKING Pin
Colin Angus Mackay2-Oct-07 10:47
Colin Angus Mackay2-Oct-07 10:47 
GeneralRe: SHRINKING Pin
zeeShan anSari2-Oct-07 10:55
zeeShan anSari2-Oct-07 10:55 
QuestionDrawing single pixels in System.Drawing.Graphics Pin
Jimmy111112-Oct-07 9:37
Jimmy111112-Oct-07 9:37 
AnswerRe: Drawing single pixels in System.Drawing.Graphics Pin
TJoe2-Oct-07 9:42
TJoe2-Oct-07 9:42 
QuestionWMI and threading problem Pin
kpgd4572-Oct-07 9:34
kpgd4572-Oct-07 9:34 
GeneralRe: WMI and threading problem Pin
TJoe2-Oct-07 9:49
TJoe2-Oct-07 9:49 
GeneralRe: WMI and threading problem Pin
kpgd4572-Oct-07 23:29
kpgd4572-Oct-07 23:29 
AnswerRe: WMI and threading problem Pin
TJoe3-Oct-07 4:27
TJoe3-Oct-07 4:27 
GeneralRe: WMI and threading problem Pin
kpgd4573-Oct-07 7:01
kpgd4573-Oct-07 7:01 
QuestionHow many Pixels?? Pin
zeeShan anSari2-Oct-07 9:17
zeeShan anSari2-Oct-07 9:17 
AnswerRe: How many Pixels?? Pin
Jimmy111112-Oct-07 9:20
Jimmy111112-Oct-07 9:20 
AnswerRe: How many Pixels?? Pin
TJoe2-Oct-07 9:20
TJoe2-Oct-07 9:20 
AnswerRe: How many Pixels?? Pin
Colin Angus Mackay2-Oct-07 9:22
Colin Angus Mackay2-Oct-07 9:22 
GeneralRe: How many Pixels?? Pin
ChrisKo2-Oct-07 9:56
ChrisKo2-Oct-07 9:56 
GeneralRe: How many Pixels?? Pin
Judah Gabriel Himango2-Oct-07 10:06
sponsorJudah Gabriel Himango2-Oct-07 10:06 
QuestionCompression Pin
Jim Warburton2-Oct-07 9:08
Jim Warburton2-Oct-07 9:08 
QuestionRe: Compression Pin
TJoe2-Oct-07 9:11
TJoe2-Oct-07 9:11 

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.