eramgarden
Programmer
I'm processing an image by putting it o 500x700 ackground canvas... I like to know how I can tell where the image ends so i could insert a text below it ..something like height of the image..This is what I have ..images ca be of different heights and this isnt workig right:
Code:
Dim b As New Bitmap(strFileToConvert)
Dim Canvas As New Bitmap(500, 700)
Dim g As Graphics = Graphics.FromImage(b)
Dim gr As Graphics = Graphics.FromImage(Canvas)
.....
'get size of the image
Dim ImageHieght = b.Height()
Dim CanvasHeight = Canvas.Height()
..... [b] find where image ends [/b]
Canvas.Save(strFileToConvert + ".jpeg", System.Drawing.Imaging.ImageFormat.Jpeg)
Canvas.Dispose()