1 Replies - 2076 Views - Last Post: 29 September 2012 - 03:01 PM Rate Topic: -----

#1 erlbinary  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 16-May 12

Help PictureBox Image

Posted 29 September 2012 - 12:00 AM

Good day is there any body can help or suggest how to fix my problem.
I'am creating OCR using PictureBox and Timer Control. My problem is
when i run my project the picturebox image moving to the right part.
I want to know if there is any way to display stable my image in picturebox
Here is my code under timer sub tick.

Public Class Form1
    
    Dim igrab As Bitmap = New Bitmap(270, 100)
    Dim icap As Graphics = Graphics.FromImage(igrab)
    
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        icap.CopyFromScreen(New Point(Me.Location.X + PictureBox1.Location.X + 4, Me.Location.Y + PictureBox1.Location.Y + 30), _
                            New Point(0, 0), igrab.Size)
        PictureBox1.Image = igrab
    End Sub
   
End Class



Sorry for my bad english :D
Thank and advance more power..

Is This A Good Question/Topic? 0
  • +

Replies To: Help PictureBox Image

#2 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,666
  • Joined: 02-June 10

Re: Help PictureBox Image

Posted 29 September 2012 - 03:01 PM

So you are trying to OCR the text that you are grabbing from someplace on screen? You're trying to screen capture a Captcha black and OCR the text being displayed?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1