Click here to Skip to main content
15,901,666 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need help. Pin
K030614-Jul-09 21:07
K030614-Jul-09 21:07 
GeneralRe: Need help. Pin
mjawadkhatri14-Jul-09 21:18
mjawadkhatri14-Jul-09 21:18 
AnswerRe: Need help. Pin
sarinsps14-Jul-09 21:47
sarinsps14-Jul-09 21:47 
Questionzedgraph control Pin
hamidhakimi14-Jul-09 20:49
hamidhakimi14-Jul-09 20:49 
QuestionSaving JPEG image Pin
GauravKP14-Jul-09 20:30
professionalGauravKP14-Jul-09 20:30 
AnswerRe: Saving JPEG image Pin
Adam R Harris14-Jul-09 20:36
Adam R Harris14-Jul-09 20:36 
AnswerRe: Saving JPEG image Pin
benjymous14-Jul-09 22:08
benjymous14-Jul-09 22:08 
GeneralRe: Saving JPEG image Pin
Abdul Rahman Hamidy15-Jul-09 0:02
Abdul Rahman Hamidy15-Jul-09 0:02 
this can help you

Image img=new Bitmap("filepath.jpg");
Bitmap bmp=null;
for(int i=0;i<img.Width;i++)
{
  for(int j=0;j<img.Height;j++)
  {
	Color col=img.GetPixel(i,j);
	int avg=((col.R+col.G+col.B)/3);
	img.SetPixel(i,j,Color.FromArgb(avg,avg,avg));	
  }
}
MemoryStream mem=new MemoryStream();
img.Save(mem,ImageFormat.Gif);
bmp=new Bitmap(mem);
this.pictureBox1.Image=bmp;


Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan

GeneralRe: Saving JPEG image Pin
benjymous15-Jul-09 0:14
benjymous15-Jul-09 0:14 
GeneralRe: Saving JPEG image Pin
Abdul Rahman Hamidy15-Jul-09 0:58
Abdul Rahman Hamidy15-Jul-09 0:58 
GeneralRe: Saving JPEG image Pin
Abdul Rahman Hamidy15-Jul-09 1:07
Abdul Rahman Hamidy15-Jul-09 1:07 
QuestionClosing COM-Interop Application Pin
Jürgen Jung14-Jul-09 20:11
Jürgen Jung14-Jul-09 20:11 
AnswerRe: Closing COM-Interop Application Pin
SeMartens14-Jul-09 21:03
SeMartens14-Jul-09 21:03 
GeneralRe: Closing COM-Interop Application Pin
Jürgen Jung14-Jul-09 21:08
Jürgen Jung14-Jul-09 21:08 
GeneralRe: Closing COM-Interop Application Pin
SeMartens14-Jul-09 21:20
SeMartens14-Jul-09 21:20 
GeneralRe: Closing COM-Interop Application Pin
Jürgen Jung14-Jul-09 21:23
Jürgen Jung14-Jul-09 21:23 
GeneralRe: Closing COM-Interop Application Pin
SeMartens14-Jul-09 21:29
SeMartens14-Jul-09 21:29 
GeneralRe: Closing COM-Interop Application Pin
Jürgen Jung14-Jul-09 21:56
Jürgen Jung14-Jul-09 21:56 
GeneralRe: Closing COM-Interop Application Pin
SeMartens14-Jul-09 22:03
SeMartens14-Jul-09 22:03 
Questionopenfiledilaog Pin
Satish Pai14-Jul-09 18:47
Satish Pai14-Jul-09 18:47 
AnswerRe: openfiledilaog Pin
BillWoodruff14-Jul-09 19:46
professionalBillWoodruff14-Jul-09 19:46 
GeneralRe: openfiledilaog Pin
Satish Pai14-Jul-09 20:07
Satish Pai14-Jul-09 20:07 
GeneralRe: openfiledilaog Pin
BillWoodruff14-Jul-09 22:09
professionalBillWoodruff14-Jul-09 22:09 
QuestionThe name 'SequentialSearch' does not exist in the current context. Pin
ReynaW122314-Jul-09 15:35
ReynaW122314-Jul-09 15:35 
AnswerRe: The name 'SequentialSearch' does not exist in the current context. Pin
Adam Maras14-Jul-09 15:46
Adam Maras14-Jul-09 15: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.