Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: rejoining split lines Pin
Dave Kreskowiak13-Sep-07 4:34
mveDave Kreskowiak13-Sep-07 4:34 
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 
I'm not sure that's an appropriate title but I can't think of a better one. So far I have the image resizing with the line:
imageBmp = New Bitmap(imageBmp, New Size(imageWidth, imageHeight))
To me that feels sloppy, and so far I can't figure out a nice way to make a single like way to crop, and if I do I feel it will be just as bad. Am I on the wrong track? Am I just over worrying about something simple that won't save/waste processor time/power? 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)?
imageNew As Bitmap = new Bitmap(Width, Height)<br />
imageNewGraphic As Graphics = Graphics.FromImage(imageNew)<br />
imageNewGraphic.DrawImage(imgBmp, new Rectangle(0, 0, Width, Height), X, Y, Width, Height, GraphicsUnit.Pixel)

I think I explained this well, I know there are other codes out there I could copy and I know that I'm reinventing the wheel, but I find I learn better this way. I'm very know to VB.NET but have had other programing training. Also this will be output to the web via ASP.NET using imageBmp.Save(Response.OutputStream, I don't believe that matters but I wanted to mention it anyway. Thanks for any help provided.
AnswerRe: Image Resize and Crop, am I on the right track? Pin
Dave Kreskowiak13-Sep-07 4:10
mveDave Kreskowiak13-Sep-07 4:10 
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 

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.