Click here to Skip to main content
15,902,198 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Where and Why my row is not collored Pin
Luc Pattyn23-Sep-11 3:32
sitebuilderLuc Pattyn23-Sep-11 3:32 
GeneralRe: Where and Why my row is not collored Pin
Scubapro23-Sep-11 3:49
Scubapro23-Sep-11 3:49 
AnswerRe: Where and Why my row is not collored Pin
DeDelva23-Sep-11 5:41
DeDelva23-Sep-11 5:41 
AnswerRe: Where and Why my row is not collored Pin
Scubapro23-Sep-11 3:48
Scubapro23-Sep-11 3:48 
GeneralRe: Where and Why my row is not collored Pin
DeDelva23-Sep-11 5:37
DeDelva23-Sep-11 5:37 
GeneralRe: Where and Why my row is not collored Pin
Scubapro25-Sep-11 21:31
Scubapro25-Sep-11 21:31 
QuestionImage Resizing Pin
eddieangel22-Sep-11 5:56
eddieangel22-Sep-11 5:56 
AnswerRe: Image Resizing Pin
Luc Pattyn22-Sep-11 7:47
sitebuilderLuc Pattyn22-Sep-11 7:47 
Hi,

1.
a 12,000 page report? I assume you're not reading that on a display. When printing (parts of) it, your printer is likely to have say 300dpi, i.e. your 200*300 image will either be smaller than 1 sq.inch, or the printer driver will have to scale it up again.

2.
You have an intermediate step saving bmPhoto to a file.Try using another image format (say bmp) as a test to say whether your bmPhoto itself is of sufficient quality.
BTW: you don't need to save to file, save to a MemoryStream instead.

3.
You're using PixelFormat.Format24bppRgb; I wouldn't do that, not sure it really matters though.

4.
bmPhoto.SetResolution(imgPhoto.HorizontalResolution, imgPhoto.VerticalResolution) is something I wouldn't do either. Again not sure it matters.

5.
GC.Collect() is a bad idea; you'd better dispose of disposable objects you no longer need, such as bmPhoto and fs. Then let the GC do its job on its own pace.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Image Resizing Pin
eddieangel22-Sep-11 7:50
eddieangel22-Sep-11 7:50 
Questiondevenv.exe error Pin
DeDelva22-Sep-11 3:36
DeDelva22-Sep-11 3:36 
AnswerRe: devenv.exe error Pin
DaveAuld22-Sep-11 3:56
professionalDaveAuld22-Sep-11 3:56 
AnswerRe: devenv.exe error Pin
Luc Pattyn22-Sep-11 7:50
sitebuilderLuc Pattyn22-Sep-11 7:50 
QuestionSelect a particular item from listview and display it in various textboxes Pin
Lek Plepi22-Sep-11 1:31
Lek Plepi22-Sep-11 1:31 
AnswerRe: Select a particular item from listview and display it in various textboxes Pin
Lek Plepi23-Sep-11 21:29
Lek Plepi23-Sep-11 21:29 
QuestionSample project connect with Scanner Pin
kdakim21-Sep-11 23:20
kdakim21-Sep-11 23:20 
AnswerRe: Sample project connect with Scanner Pin
DaveAuld21-Sep-11 23:34
professionalDaveAuld21-Sep-11 23:34 
QuestionChange Column width from Datagridview without dataset Pin
DeDelva21-Sep-11 11:29
DeDelva21-Sep-11 11:29 
AnswerRe: Change Column width from Datagridview without dataset Pin
David C# Hobbyist.21-Sep-11 12:36
professionalDavid C# Hobbyist.21-Sep-11 12:36 
AnswerRe: Change Column width from Datagridview without dataset Pin
Luc Pattyn21-Sep-11 13:46
sitebuilderLuc Pattyn21-Sep-11 13:46 
AnswerRe: Change Column width from Datagridview without dataset Pin
DeDelva21-Sep-11 20:50
DeDelva21-Sep-11 20:50 
AnswerRe: Change Column width from Datagridview without dataset Pin
DaveAuld21-Sep-11 21:38
professionalDaveAuld21-Sep-11 21:38 
QuestionNeed An Application Pin
trustamar921-Sep-11 8:32
trustamar921-Sep-11 8:32 
AnswerRe: Need An Application PinPopular
Kevin Marois21-Sep-11 11:11
professionalKevin Marois21-Sep-11 11:11 
GeneralRe: Need An Application Pin
David C# Hobbyist.21-Sep-11 17:01
professionalDavid C# Hobbyist.21-Sep-11 17:01 
GeneralRe: Need An Application Pin
DaveAuld21-Sep-11 20:59
professionalDaveAuld21-Sep-11 20:59 

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.