Click here to Skip to main content
16,007,843 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: deploying webform? Pin
kiran kumar[Intelligroup]16-Jan-07 20:39
kiran kumar[Intelligroup]16-Jan-07 20:39 
GeneralRe: deploying webform? Pin
nclauder16-Jan-07 21:00
nclauder16-Jan-07 21:00 
GeneralRe: deploying webform? Pin
kiran kumar[Intelligroup]16-Jan-07 21:09
kiran kumar[Intelligroup]16-Jan-07 21:09 
GeneralRe: deploying webform? Pin
nclauder17-Jan-07 2:02
nclauder17-Jan-07 2:02 
GeneralRe: deploying webform? Pin
kiran kumar[Intelligroup]17-Jan-07 2:21
kiran kumar[Intelligroup]17-Jan-07 2:21 
GeneralRe: deploying webform? Pin
nclauder17-Jan-07 19:21
nclauder17-Jan-07 19:21 
QuestionCropping images in asp.net Pin
yogita charhate16-Jan-07 19:41
yogita charhate16-Jan-07 19:41 
AnswerRe: Cropping images in asp.net Pin
Rahithi17-Jan-07 4:30
Rahithi17-Jan-07 4:30 
hi yogita,
try this:

Imports System.Drawing.Image
Imports System.Drawing
Imports System.IO
Imports System.Text

Public Structure CropType
Public Height As String
Public Width As String
End Structure

Public Function Crop(ByVal Height As String, ByVal Width As String)
_pathOutputImage = getRandomName()
Dim bmpImage As Bitmap
Dim recCrop As Rectangle
Dim bmpCrop As Bitmap
Dim gphCrop As Graphics
Dim recDest As Rectangle
Try
TakeNote("Crop " & Height & " x " & Width)
bmpImage = New Bitmap(_inputImage)
recCrop = New Rectangle(0, 0, Width, Height)
bmpCrop = New Bitmap(recCrop.Width, recCrop.Height, bmpImage.PixelFormat)
gphCrop = Graphics.FromImage(bmpCrop)
recDest = New Rectangle(0, 0, Width, Height)
gphCrop.DrawImage(bmpImage, recDest, recCrop.X, recCrop.Y, recCrop.Width, _
recCrop.Height, GraphicsUnit.Pixel)

Catch er As Exception
TakeNote("CROP ERR: " & er.ToString)
Throw er
Finally
bmpCrop.Save(_pathOutputImage)
_inputImage = Image.FromFile(_pathOutputImage)
End Try
End Function



Thanks,
Rahithi

If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "

QuestionAudio Streaming Pin
M A A Mehedi Hasan16-Jan-07 19:17
M A A Mehedi Hasan16-Jan-07 19:17 
QuestionDataGrid Pin
Rahithi16-Jan-07 17:35
Rahithi16-Jan-07 17:35 
AnswerRe: DataGrid Pin
kiran kumar[Intelligroup]16-Jan-07 20:28
kiran kumar[Intelligroup]16-Jan-07 20:28 
QuestionCreate Profile. Going crazy ... Pin
shapper16-Jan-07 13:46
shapper16-Jan-07 13:46 
QuestionGridView RowDeleting event not firing Pin
alimohammed16-Jan-07 10:04
alimohammed16-Jan-07 10:04 
AnswerRe: GridView RowDeleting event not firing Pin
Venkatesh Mookkan16-Jan-07 17:28
Venkatesh Mookkan16-Jan-07 17:28 
QuestionBrowser back button Pin
javierarka16-Jan-07 9:12
javierarka16-Jan-07 9:12 
AnswerRe: Browser back button Pin
alimohammed16-Jan-07 10:52
alimohammed16-Jan-07 10:52 
AnswerRe: Browser back button Pin
MoustafaS16-Jan-07 13:12
MoustafaS16-Jan-07 13:12 
Questionbuttons and ajax (best practice) Pin
Leo Smith16-Jan-07 8:58
Leo Smith16-Jan-07 8:58 
AnswerRe: buttons and ajax (best practice) Pin
Christian Graus16-Jan-07 9:04
protectorChristian Graus16-Jan-07 9:04 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith16-Jan-07 9:30
Leo Smith16-Jan-07 9:30 
GeneralRe: buttons and ajax (best practice) Pin
Christian Graus16-Jan-07 13:14
protectorChristian Graus16-Jan-07 13:14 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith16-Jan-07 14:31
Leo Smith16-Jan-07 14:31 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith17-Jan-07 2:15
Leo Smith17-Jan-07 2:15 
AnswerRe: buttons and ajax (best practice) Pin
Bassam Saoud16-Jan-07 9:22
Bassam Saoud16-Jan-07 9:22 
GeneralRe: buttons and ajax (best practice) Pin
Leo Smith16-Jan-07 14:36
Leo Smith16-Jan-07 14:36 

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.