Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: Bar Code scanner integration with application Pin
Philip.F29-Sep-08 21:50
Philip.F29-Sep-08 21:50 
GeneralRe: Bar Code scanner integration with application Pin
neer129-Sep-08 22:10
neer129-Sep-08 22:10 
GeneralRe: Bar Code scanner integration with application Pin
Philip.F29-Sep-08 22:22
Philip.F29-Sep-08 22:22 
GeneralRe: Bar Code scanner integration with application [modified] Pin
neer130-Sep-08 0:14
neer130-Sep-08 0:14 
Questioni want to crop an image... picture is in picture box,, Pin
maifs29-Sep-08 18:20
maifs29-Sep-08 18:20 
Questioni want to continuously rotating Pin
maifs29-Sep-08 18:13
maifs29-Sep-08 18:13 
QuestionHow to display child rows INLINE along with Parent records using datagrid Pin
vkuttyp29-Sep-08 18:09
professionalvkuttyp29-Sep-08 18:09 
Questionnegative filter problem? Pin
maifs29-Sep-08 16:59
maifs29-Sep-08 16:59 
i want to create a negative filter of any image..

i am trying this...



public void Negative()

{

Bitmap copy=new Bitmap(m.Width,m.Height);

ImageAttributes ia = new ImageAttributes();


ColorMatrix cm = new ColorMatrix();

cm.Matrix00 = cm.Matrix11 = cm.Matrix22 = 0.99f;

cm.Matrix33 = cm.Matrix44 = 1;

cm.Matrix40 = cm.Matrix41 = cm.Matrix42 = .04f;

ia.SetColorMatrix(cm);

Graphics g=Graphics.FromImage(copy);

g.DrawImage(m,new Rectangle(0, 0,m.Width, m.Height), 0, 0, m.Width, m.Height, GraphicsUnit.Pixel, ia);

g.Dispose();

m.Dispose();


}

but here is some error occur in this.......

error is:
Error 2 Argument '2': cannot convert from 'I_M_Editor.Rectangle' to 'System.Drawing.Rectangle' D:\dot.net.programs.using.c#\0eh066\I'M Editor\I'M Editor\frmEditable.cs 688 15 I'M Editor

and
Error 1 The best overloaded method match for 'System.Drawing.Graphics.DrawImage(System.Drawing.Image, System.Drawing.Rectangle, float, float, float, float, System.Drawing.GraphicsUnit, System.Drawing.Imaging.ImageAttributes)' has some invalid arguments D:\dot.net.programs.using.c#\0eh066\I'M Editor\I'M Editor\frmEditable.cs 688 1 I'M Editor












}

hghghgh

AnswerRe: negative filter problem? Pin
Wendelius29-Sep-08 18:04
mentorWendelius29-Sep-08 18:04 
GeneralRe: negative filter problem? Pin
maifs29-Sep-08 18:43
maifs29-Sep-08 18:43 
GeneralRe: negative filter problem? Pin
Wendelius30-Sep-08 3:29
mentorWendelius30-Sep-08 3:29 
QuestionPatch Deployment - Newbie Question Pin
kruegersck29-Sep-08 13:06
kruegersck29-Sep-08 13:06 
AnswerRe: Patch Deployment - Newbie Question Pin
Muhammad Shahid Farooq29-Sep-08 13:25
professionalMuhammad Shahid Farooq29-Sep-08 13:25 
GeneralRe: Patch Deployment - Newbie Question Pin
kruegersck30-Sep-08 1:57
kruegersck30-Sep-08 1:57 
GeneralRe: Patch Deployment - Newbie Question Pin
Muhammad Shahid Farooq30-Sep-08 4:54
professionalMuhammad Shahid Farooq30-Sep-08 4:54 
GeneralRe: Patch Deployment - Newbie Question Pin
kruegersck30-Sep-08 6:37
kruegersck30-Sep-08 6:37 
GeneralRe: Patch Deployment - Newbie Question Pin
Mycroft Holmes30-Sep-08 22:42
professionalMycroft Holmes30-Sep-08 22:42 
Questionxds Pin
postonoh29-Sep-08 11:35
postonoh29-Sep-08 11:35 
GeneralRe: xds Pin
nelsonpaixao29-Sep-08 11:56
nelsonpaixao29-Sep-08 11:56 
AnswerRe: xds Pin
Mycroft Holmes29-Sep-08 14:40
professionalMycroft Holmes29-Sep-08 14:40 
GeneralRe: xds Pin
postonoh29-Sep-08 15:56
postonoh29-Sep-08 15:56 
QuestionZoom problem with a picture within picturebox.? Pin
maifs29-Sep-08 10:53
maifs29-Sep-08 10:53 
AnswerRe: Zoom problem with a picture within picturebox.? Pin
nelsonpaixao29-Sep-08 12:08
nelsonpaixao29-Sep-08 12:08 
GeneralRe: Zoom problem with a picture within picturebox.? Pin
maifs6-Oct-08 19:13
maifs6-Oct-08 19:13 
QuestionNeed Help with Encrypt/Decrypt Application.Config file.. examples needed Pin
Adam Cheeseman29-Sep-08 10:11
Adam Cheeseman29-Sep-08 10: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.