Click here to Skip to main content
16,005,178 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to print Crystal report directly Pin
Swiss Mantoro12-Sep-07 22:28
Swiss Mantoro12-Sep-07 22:28 
AnswerRe: How to print Crystal report directly Pin
Steven J Jowett12-Sep-07 23:47
Steven J Jowett12-Sep-07 23:47 
QuestionUpdate Date Pin
TAK7812-Sep-07 12:11
TAK7812-Sep-07 12:11 
AnswerRe: Update Date Pin
Dave Kreskowiak13-Sep-07 4:27
mveDave Kreskowiak13-Sep-07 4:27 
QuestionDropdown of available com ports Pin
Cory Kimble12-Sep-07 10:46
Cory Kimble12-Sep-07 10:46 
AnswerRe: Dropdown of available com ports Pin
Luc Pattyn12-Sep-07 14:53
sitebuilderLuc Pattyn12-Sep-07 14:53 
QuestionImage Resize and Crop, am I on the right track? Pin
RX Maverick12-Sep-07 10:20
RX Maverick12-Sep-07 10:20 
AnswerRe: Image Resize and Crop, am I on the right track? Pin
Dave Kreskowiak13-Sep-07 4:10
mveDave Kreskowiak13-Sep-07 4:10 
RX Maverick wrote:
imageBmp = New Bitmap(imageBmp, New Size(imageWidth, imageHeight))
To me that feels sloppy


No, that's what you have to do.


RX Maverick wrote:
and so far I can't figure out a nice way to make a single like way to crop,


I think you're asking if there is a "single LINE" way to crop an image. No, there isn't. You have to create a new bitmap the size you want the cropped image to be, then copy the bits from the old bitmap to the new one.


RX Maverick wrote:
Would it be better for me to do both at once (resize and crop) by making a second image and using DrawImage like in the code below (currently it just crops)?


You could do it in one operation, but I wouldn't for right now. Get your app to work the way you want first, without worrying about wasting a ton of resources. If you're not constantly resizing and cropping an image, then this code should work just fine. It's one image operation. You're not really taxing the processor at all doing this.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionProblems binding datarelations to a listbox Pin
Mr Oizo12-Sep-07 9:31
Mr Oizo12-Sep-07 9:31 
AnswerRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak13-Sep-07 4:01
mveDave Kreskowiak13-Sep-07 4:01 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo13-Sep-07 11:26
Mr Oizo13-Sep-07 11:26 
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak13-Sep-07 12:38
mveDave Kreskowiak13-Sep-07 12:38 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo15-Sep-07 0:36
Mr Oizo15-Sep-07 0:36 
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak15-Sep-07 2:11
mveDave Kreskowiak15-Sep-07 2:11 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo16-Sep-07 2:13
Mr Oizo16-Sep-07 2:13 
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak16-Sep-07 4:46
mveDave Kreskowiak16-Sep-07 4:46 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo16-Sep-07 5:25
Mr Oizo16-Sep-07 5:25 
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak16-Sep-07 5:52
mveDave Kreskowiak16-Sep-07 5:52 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo16-Sep-07 7:52
Mr Oizo16-Sep-07 7:52 
Questionsolution config file ? Pin
ttilque12-Sep-07 8:38
ttilque12-Sep-07 8:38 
AnswerRe: solution config file ? Pin
Naji El Kotob12-Sep-07 9:57
Naji El Kotob12-Sep-07 9:57 
GeneralRe: solution config file ? Pin
ttilque13-Sep-07 1:10
ttilque13-Sep-07 1:10 
GeneralRe: solution config file ? Pin
Dave Kreskowiak13-Sep-07 3:54
mveDave Kreskowiak13-Sep-07 3:54 
QuestionAutomatic Namespaces Pin
Mark0612-Sep-07 6:19
Mark0612-Sep-07 6:19 
AnswerRe: Automatic Namespaces Pin
Dave Kreskowiak13-Sep-07 3:52
mveDave Kreskowiak13-Sep-07 3:52 

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.