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

C#

 
QuestionAbout Entity Framework Pin
mmdullah27-Mar-10 19:15
mmdullah27-Mar-10 19:15 
AnswerRe: About Entity Framework Pin
PSK_27-Mar-10 20:02
PSK_27-Mar-10 20:02 
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 
To resize an image,
var originalImage = Bitmap.FromFile(imagePath);
var resizedImage = new Bitmap(originalImage, newWidth, newHeight);

I don't know about your requirements but I suggest you look into using a database but if you need to use an xml file may I suggest you save the images to disk and store the paths (relative paths) in the xml file since you'd be storing about 59 KB inside the xml file for each image which may increase the time required to parse the xml file and may make the xml file hit the size limit of the file system if you're storing a lot of images. Again, it's all about the requirements and what would be needed to be implemented in the future of the application.
Eslam Afifi

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 
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 

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.