Image zoom

Post

Posted
Rating:
#1 (In Topic #1269)
Avatar
Guru
cogier is in the usergroup ‘Guru’
I am trying to magnify a webcam image. At present, I can see the webcam image in a MediaView and take a picture of the image and display it in a PictureBox. The part I can't work out is how to 'zoom in' on the image. I am aware that there may be issues with image quality when 'zoomed'.

I have attached some code that will give you an idea.

Any help appreciated.

Attachment
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
I have made some progress: -

Attachment
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
vuott is in the usergroup ‘Regular’
 Hello cogier,
by using your second code, it seems to me that the problem is basically solved.

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Guru
cogier is in the usergroup ‘Guru’

vuott said

Hello cogier,
by using your second code, it seems to me that the problem is basically solved.

Thanks vuott. It is improving, I was just wondering if anybody else had any better ideas.
Online now: No Back to the top

Post

Posted
Rating:
#5
Regular
vuott is in the usergroup ‘Regular’
 Hello cogier,
just a question: …why did not use ".Stretch()" Picture Method ?

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Guru
cogier is in the usergroup ‘Guru’
Hi vuott,

I set the PictureBox property to Stretch = True. I used Picture.Copy method to display the image. You can see all this in the WebCamViewer-0.2.tar.gz file above.

It works, but does not do what I want. The loss of picture quality as you zoom in is terrible! I would need a much better camera than the cheap webcam I am using.
Online now: No Back to the top
1 guest and 0 members have just viewed this.