Click to See Complete Forum and Search --> : Image manipulation


andrea_
July 27th, 2000, 02:34 AM
How can i extract an image from another image source? I want to make a control/dll that dynamically manipulate an image then save it to a temporary file which will be accessed by a web page.

soar
July 28th, 2000, 04:13 PM
'In my situation, I was using a third party software to save/write the image to my d-drive

'Inside your control/dll
'Write Bitmap to d:\Bitmap
retVal = Token.WriteBitmapFile("D:\Bitmap", 0, 0, 0, 0)

If retVal = 0 Then
'Populate Picture from d:\Bitmap
Set Picture1.Picture = LoadPicture("D:/Bitmap")
Else
MsgBox "Write Bitmap to disc failed"
End If


'Inside your HTML
<img src="D:\Bitmap>

Rick Leinecker
August 14th, 2000, 08:33 PM
Your question can have two answers.

1. Case one is when you're using ASP. In this case you need a third party library. I have such an animal and with additional details would be willing to create a simple demo for you.

2. Case two is when you're using ASP+. In this case you'll use the Image class that's built in. I'll also create a sample app for you if this is the case.