Click here to Skip to main content
15,925,042 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDLL File Creation Pin
Zach Salzbank20-Nov-02 11:31
Zach Salzbank20-Nov-02 11:31 
GeneralRe: DLL File Creation Pin
Hesham Amin21-Nov-02 2:38
Hesham Amin21-Nov-02 2:38 
Generalbrowse Pin
Hesham Amin20-Nov-02 7:13
Hesham Amin20-Nov-02 7:13 
GeneralRe: browse Pin
Roger Stewart20-Nov-02 16:15
professionalRoger Stewart20-Nov-02 16:15 
GeneralOperator Overloading Pin
Nick Seng20-Nov-02 0:00
Nick Seng20-Nov-02 0:00 
GeneralRe: Operator Overloading Pin
Steven Lyons20-Nov-02 8:17
Steven Lyons20-Nov-02 8:17 
GeneralAfterLabelEdit Pin
Jerome Conus19-Nov-02 23:18
Jerome Conus19-Nov-02 23:18 
GeneralDrawing Rectangle on .Tiff image Pin
Zulfikar Ali19-Nov-02 9:11
Zulfikar Ali19-Nov-02 9:11 
i am trying to draw a rectganle on a .tiff image and then save the image. right now it's just saving a .tiif file nogthing on it. here is the code. your help is greatly appreciated. thanksConfused | :confused:


g = picImage.CreateGraphics()
Dim objBmp As Bitmap = New Bitmap(picImage.Size.Width, picImage.Size.Height, Imaging.PixelFormat.Format64bppPArgb)

objBmp.FromFile(strPath & curF & ".tif")

g.FromImage(objBmp)
'Sets the position of the mouse
finishX = e.X
finishY = e.Y
up = New Point(finishX, finishY)
'Sets the value of rectangle, x, y, width, height position
rect = New Rectangle(Math.Min(up.X, down.X), Math.Min(up.Y, down.Y), Math.Abs(up.X - down.X), Math.Abs(up.Y - down.Y))
'draws and fills rectagnle
g.DrawImage(objBmp, rect) 'New Rectangle(0, 0, objBmp.Width, objBmp.Height), 0, 0, objBmp.Width, objBmp.Height, GraphicsUnit.Pixel)
g.DrawRectangle(Pens.Black, rect)
g.FillRectangle(New SolidBrush(Color.White), rect)
objBmp.Save(strPath & curF & "s" & ".tif", Imaging.ImageFormat.Tiff)
g.Dispose()
objBmp.Dispose()


Zulfikar Ali
GeneralRe: Drawing Rectangle on .Tiff image Pin
Christian Graus19-Nov-02 9:41
protectorChristian Graus19-Nov-02 9:41 
GeneralRe: Drawing Rectangle on .Tiff image Pin
Zulfikar Ali19-Nov-02 9:44
Zulfikar Ali19-Nov-02 9:44 
GeneralRe: Drawing Rectangle on .Tiff image Pin
Christian Graus19-Nov-02 10:05
protectorChristian Graus19-Nov-02 10:05 
Generalshowing the status bar of the webbrowser Pin
pirate91119-Nov-02 7:50
pirate91119-Nov-02 7:50 
GeneralHot keys Pin
Hesham Amin19-Nov-02 0:49
Hesham Amin19-Nov-02 0:49 
GeneralRe: Hot keys Pin
Andrew Stampor19-Nov-02 3:26
Andrew Stampor19-Nov-02 3:26 
GeneralRe: Hot keys Pin
Hesham Amin19-Nov-02 5:52
Hesham Amin19-Nov-02 5:52 
Generaladd sum from list Pin
Golfmaltais18-Nov-02 10:38
sussGolfmaltais18-Nov-02 10:38 
GeneralRe: add sum from list Pin
Andrew Stampor18-Nov-02 11:24
Andrew Stampor18-Nov-02 11:24 
GeneralRe: add sum from list Pin
Golfmaltais19-Nov-02 5:42
sussGolfmaltais19-Nov-02 5:42 
GeneralRe: add sum from list Pin
Andrew Stampor19-Nov-02 10:13
Andrew Stampor19-Nov-02 10:13 
GeneralFun with OpenUrl Pin
Andrew Stampor18-Nov-02 8:40
Andrew Stampor18-Nov-02 8:40 
Generaldropdownlist as templatecolumn in datagrid [web] Pin
mschilli18-Nov-02 1:57
mschilli18-Nov-02 1:57 
GeneralVB.net Resource Pin
Nick Seng17-Nov-02 15:58
Nick Seng17-Nov-02 15:58 
GeneralTelephony Pin
SuperGeek16-Nov-02 6:08
SuperGeek16-Nov-02 6:08 
GeneralGetEncoderInfo Pin
Zulfikar Ali15-Nov-02 7:28
Zulfikar Ali15-Nov-02 7:28 
GeneralRe: GetEncoderInfo Pin
Zulfikar Ali15-Nov-02 7:42
Zulfikar Ali15-Nov-02 7:42 

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.