Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web Service Problem and Session Pin
Mazdak16-Jan-04 6:57
Mazdak16-Jan-04 6:57 
GeneralRe: Web Service Problem and Session Pin
Heath Stewart16-Jan-04 6:59
protectorHeath Stewart16-Jan-04 6:59 
Generalhttp remote file timestamp Pin
elraton15-Jan-04 9:29
elraton15-Jan-04 9:29 
GeneralRe: http remote file timestamp Pin
Heath Stewart15-Jan-04 9:55
protectorHeath Stewart15-Jan-04 9:55 
QuestionDoc / View i C# ? Pin
anderslundsgard15-Jan-04 7:25
anderslundsgard15-Jan-04 7:25 
AnswerRe: Doc / View i C# ? Pin
Heath Stewart15-Jan-04 9:53
protectorHeath Stewart15-Jan-04 9:53 
AnswerRe: Doc / View i C# ? Pin
Eric Gunnerson (msft)15-Jan-04 13:10
Eric Gunnerson (msft)15-Jan-04 13:10 
GeneralMetafile too small Pin
Torsch15-Jan-04 6:31
Torsch15-Jan-04 6:31 
Hello!

I've tried to display a MetaFile (saved as Image in a DB) in a pictureBox, using the Graphics.DrawImage(image, pictureBox.Bounds, img.getBounds(ref GraphicsUnit.Pixel), GraphicsUnit.Pixel) method.
The pictureBox Bounds are sizeable, so in step 1, the image is stretched smaller and everything's fine.
But in stept 2, the picturebox gets larger than the image and the method does not stretch the image.
Is there a possibility to resize the whole metafile?
I've tried it with a new Metafile on a System.IO.MemoryStream, but that doesn't work, even a new transformation of the e.Graphics surface didn't work by using e.Graphics.ScaleTransform().

Thank you for your help!

Greetings
Torge
GeneralParameters & Threading Pin
Anonymous15-Jan-04 4:56
Anonymous15-Jan-04 4:56 
GeneralRe: Parameters & Threading Pin
Heath Stewart15-Jan-04 6:49
protectorHeath Stewart15-Jan-04 6:49 
Generalwindows service question Pin
Visuall15-Jan-04 4:55
Visuall15-Jan-04 4:55 
GeneralRe: windows service question Pin
Heath Stewart15-Jan-04 6:41
protectorHeath Stewart15-Jan-04 6:41 
GeneralADO.Net synchronization Pin
Judah Gabriel Himango15-Jan-04 4:49
sponsorJudah Gabriel Himango15-Jan-04 4:49 
GeneralRe: ADO.Net synchronization Pin
Not Active15-Jan-04 5:42
mentorNot Active15-Jan-04 5:42 
GeneralRe: ADO.Net synchronization Pin
Judah Gabriel Himango15-Jan-04 6:01
sponsorJudah Gabriel Himango15-Jan-04 6:01 
GeneralRe: ADO.Net synchronization Pin
Not Active15-Jan-04 6:28
mentorNot Active15-Jan-04 6:28 
GeneralRe: ADO.Net synchronization Pin
Judah Gabriel Himango15-Jan-04 8:34
sponsorJudah Gabriel Himango15-Jan-04 8:34 
GeneralRe: ADO.Net synchronization Pin
Heath Stewart15-Jan-04 6:31
protectorHeath Stewart15-Jan-04 6:31 
GeneralRe: ADO.Net synchronization Pin
Judah Gabriel Himango15-Jan-04 8:41
sponsorJudah Gabriel Himango15-Jan-04 8:41 
GeneralRe: ADO.Net synchronization Pin
Heath Stewart15-Jan-04 9:27
protectorHeath Stewart15-Jan-04 9:27 
GeneralRe: ADO.Net synchronization Pin
Judah Gabriel Himango15-Jan-04 8:47
sponsorJudah Gabriel Himango15-Jan-04 8:47 
GeneralRe: ADO.Net synchronization Pin
Heath Stewart15-Jan-04 9:31
protectorHeath Stewart15-Jan-04 9:31 
GeneralRe: ADO.Net synchronization Pin
Mazdak15-Jan-04 5:53
Mazdak15-Jan-04 5:53 
GeneralRe: ADO.Net synchronization Pin
Judah Gabriel Himango15-Jan-04 6:06
sponsorJudah Gabriel Himango15-Jan-04 6:06 
GeneralRe: ADO.Net synchronization Pin
Mazdak15-Jan-04 6:28
Mazdak15-Jan-04 6:28 

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.