Click here to Skip to main content
15,925,133 members
Home / Discussions / C#
   

C#

 
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 
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 
You are not zooming the image itself. Instead, you are telling the view (Graphics) how to render the image.

This is the advantage of using Transforms... drawing code does not change. Just the parameters of the rendering. Derive a class from PictureBox (or control type of choice...) and modify the OnPaint routine appropriately.


public class ZoomPictureBox : PictureBox
{
private float m_zoom = 1.0F;

public float Zoom
{
get{ return m_zoom; }
set{ m_zoom = value;
if( this.Image != null ) Invalidate();
}

protected override void OnPaint(PaintEventArgs e)
{
Matrix matrix = new Matrix();
matrix.Scale( m_zoom, m_zoom );
e.Graphics.Transform = matrix;

e.Graphics.DrawImageUnscaled( this.Image, 0, 0 );

// base.OnPaint (e);
}
}
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 
GeneralRe: Regular Expression for repeat string Pin
god4k23-May-05 0:06
god4k23-May-05 0:06 
Generalinserting between node's Pin
ksanju100022-May-05 2:22
ksanju100022-May-05 2:22 
Generaladd string to an Array Pin
ksanju100022-May-05 1:19
ksanju100022-May-05 1:19 

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.