Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
AnswerRe: About Entity Framework Pin
Not Active28-Mar-10 1:44
mentorNot Active28-Mar-10 1:44 
QuestionMobile Phone Dialer Pin
mmdullah27-Mar-10 19:10
mmdullah27-Mar-10 19:10 
AnswerRe: Mobile Phone Dialer Pin
Mustafa Ismail Mustafa28-Mar-10 0:50
Mustafa Ismail Mustafa28-Mar-10 0:50 
AnswerRe: Mobile Phone Dialer Pin
Eddy Vluggen28-Mar-10 4:27
professionalEddy Vluggen28-Mar-10 4:27 
Questionreduce image size Pin
Jassim Rahma27-Mar-10 12:55
Jassim Rahma27-Mar-10 12:55 
AnswerRe: reduce image size Pin
Eslam Afifi27-Mar-10 13:37
Eslam Afifi27-Mar-10 13:37 
GeneralRe: reduce image size Pin
Jassim Rahma28-Mar-10 11:54
Jassim Rahma28-Mar-10 11:54 
AnswerRe: reduce image size Pin
Luc Pattyn27-Mar-10 15:46
sitebuilderLuc Pattyn27-Mar-10 15:46 
jrahma wrote:
picturePhoto.Image = System.Drawing.Image.FromFile(dialogPhoto.FileName);

Graphics reduced_images = Graphics.FromImage(Image.FromFile(dialogPhoto.FileName));


that is creating two images, i.e. two distinct instances of the Image class, each holding the same picture.
No wonder you will get confused.

Furthermore, you should keep the image in a variable, as images need to be disposed of when done.

Smile | :)

GeneralRe: reduce image size Pin
Mycroft Holmes28-Mar-10 13:08
professionalMycroft Holmes28-Mar-10 13:08 
AnswerRe: reduce image size Pin
Luc Pattyn28-Mar-10 13:13
sitebuilderLuc Pattyn28-Mar-10 13:13 
GeneralRe: reduce image size Pin
Mycroft Holmes28-Mar-10 14:17
professionalMycroft Holmes28-Mar-10 14:17 
GeneralRe: reduce image size Pin
Luc Pattyn28-Mar-10 14:27
sitebuilderLuc Pattyn28-Mar-10 14:27 
QuestionXMLDocument for all MDI children Pin
Jassim Rahma27-Mar-10 12:52
Jassim Rahma27-Mar-10 12:52 
AnswerRe: XMLDocument for all MDI children Pin
Eslam Afifi27-Mar-10 13:42
Eslam Afifi27-Mar-10 13:42 
AnswerRe: XMLDocument for all MDI children Pin
Mustafa Ismail Mustafa28-Mar-10 0:48
Mustafa Ismail Mustafa28-Mar-10 0:48 
Questionrun save_changes for open children Pin
Jassim Rahma27-Mar-10 12:51
Jassim Rahma27-Mar-10 12:51 
AnswerRe: run save_changes for open children Pin
Eslam Afifi27-Mar-10 13:42
Eslam Afifi27-Mar-10 13:42 
AnswerDegrees, minutes and seconds to Decimal Degrees Pin
Darrall27-Mar-10 7:17
Darrall27-Mar-10 7:17 
GeneralRe: Degrees, minutes and seconds to Decimal Degrees Pin
Abhinav S27-Mar-10 7:27
Abhinav S27-Mar-10 7:27 
GeneralRe: Degrees, minutes and seconds to Decimal Degrees Pin
Darrall27-Mar-10 7:35
Darrall27-Mar-10 7:35 
GeneralRe: Degrees, minutes and seconds to Decimal Degrees Pin
Tarakeshwar Reddy27-Mar-10 7:52
professionalTarakeshwar Reddy27-Mar-10 7:52 
GeneralRe: Degrees, minutes and seconds to Decimal Degrees Pin
Richard MacCutchan27-Mar-10 7:52
mveRichard MacCutchan27-Mar-10 7:52 
AnswerRe: Degrees, minutes and seconds to Decimal Degrees Pin
Tarakeshwar Reddy27-Mar-10 8:02
professionalTarakeshwar Reddy27-Mar-10 8:02 
GeneralRe: Degrees, minutes and seconds to Decimal Degrees Pin
Darrall27-Mar-10 14:51
Darrall27-Mar-10 14:51 
Questionupdate Dictionary with new KeyValuePair set Pin
igalep13227-Mar-10 4:07
igalep13227-Mar-10 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.