Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: XmlNodes in a ListBox and junk... Pin
eggie522-May-05 13:30
eggie522-May-05 13:30 
GeneralRe: XmlNodes in a ListBox and junk... Pin
Sebrell22-May-05 15:29
Sebrell22-May-05 15:29 
GeneralRe: XmlNodes in a ListBox and junk... Pin
eggie522-May-05 15:48
eggie522-May-05 15:48 
GeneralRe: XmlNodes in a ListBox and junk... Pin
J4m13C22-May-05 21:47
sussJ4m13C22-May-05 21:47 
GeneralRe: XmlNodes in a ListBox and junk... Pin
Anonymous22-May-05 21:48
Anonymous22-May-05 21:48 
GeneralNtework Access using C# Pin
ksanju100022-May-05 8:33
ksanju100022-May-05 8:33 
GeneralTAPI help Pin
ksanju100022-May-05 8:27
ksanju100022-May-05 8:27 
GeneralZooming Using Matrices.... Pin
NortonC22-May-05 7:47
NortonC22-May-05 7:47 
Hi,
I'm quite new to C# especially when using GDI+. I saw the solution for zooming an image, but I didn't manage to zoom.
I couldn't quite understand what the parameters in "new Matrix(scale,0,0,scale, xoffest, yoffset);" mean I think
In order to zoom my image by 25% I implemented your code in the following way:

float scale = 25f/100f;
pictureBox.Image.Save("OriginalImage.png",ImageFormat.Png);
Graphics g = Graphics.FromImage(pictureBox.Image);
g.Transform = new Matrix(scale,0,0,scale, 0, 0);
pictureBox.Image.Save("ResizedImage.png", ImageFormat.Png);
pictureBox.Image = Image.FromFile("ResizedImage.png"); //to load the new image

What am I doing wrong please?

Thanks A Lot!
C.N.
GeneralRe: Zooming Using Matrices.... Pin
Judah Gabriel Himango22-May-05 11:05
sponsorJudah Gabriel Himango22-May-05 11:05 
GeneralRe: Zooming Using Matrices.... Pin
NortonC22-May-05 12:49
NortonC22-May-05 12:49 
GeneralRe: Zooming Using Matrices.... Pin
John Arlen122-May-05 13:23
John Arlen122-May-05 13:23 
QuestionHow can I choose different Framework? Pin
Member 162442722-May-05 7:08
Member 162442722-May-05 7:08 
AnswerRe: How can I choose different Framework? Pin
Judah Gabriel Himango22-May-05 11:07
sponsorJudah Gabriel Himango22-May-05 11:07 
QuestionPalmOS DB library for use in C#? Pin
UncleRedz22-May-05 4:19
UncleRedz22-May-05 4:19 
AnswerRe: PalmOS DB library for use in C#? Pin
Christian Graus22-May-05 13:27
protectorChristian Graus22-May-05 13:27 
GeneralRe: PalmOS DB library for use in C#? Pin
UncleRedz22-May-05 18:02
UncleRedz22-May-05 18:02 
Generaltrial virsion Pin
Mohammad Bassam Daba'an22-May-05 4:06
sussMohammad Bassam Daba'an22-May-05 4:06 
GeneralRe: trial virsion Pin
MoustafaS22-May-05 5:43
MoustafaS22-May-05 5:43 
GeneralRe: trial virsion : What if the user reinstalls? Pin
Anonymous22-May-05 17:48
Anonymous22-May-05 17:48 
GeneralRe: trial virsion : What if the user reinstalls? Pin
MoustafaS22-May-05 23:07
MoustafaS22-May-05 23:07 
GeneralRe: trial virsion Pin
Omar _22-May-05 10:02
Omar _22-May-05 10:02 
GeneralRe: trial virsion Pin
Mohammad Daba'an22-May-05 19:22
Mohammad Daba'an22-May-05 19:22 
GeneralRe: trial virsion (edited) Pin
Luis Alonso Ramos22-May-05 19:13
Luis Alonso Ramos22-May-05 19:13 
GeneralRegular Expression for repeat string Pin
god4k22-May-05 2:45
god4k22-May-05 2:45 
GeneralRe: Regular Expression for repeat string Pin
User 665822-May-05 4:07
User 665822-May-05 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.