A simple solution can be, always render the image twice.

X = 0
Y = 0
Do
     RenderImage ("SomeImage.Jpg", X, Y)
     RenderImage ("SomeImage.Jpg", X, Y - PictureBox1.Height)

     Y = Y + 1
     If Y >= PictureBox1.Height Then Y = 0
Loop (until key = escape)

Now after reading your question, I guess you haven't got the whole image,
instead you are getting one row each time from FFT routine. Maybe you are
doing some real time graph simulation like the we see in Windows Task
Manager's Process Tab.

To copy and paste some part of screen you need to use BitBlt API.

There are also some key points for working with GDI+ but for now just play
with the API first.

On Thu, Jan 27, 2011 at 5:34 AM, Jeff Steinkamp (N7YG) <[email protected]>wrote:

>   I have a picture box that I am trying to display a waterfall in.  I’m
> having a bit of difficulty trying to move the image down the Y axis by 1
> pixel.  Basically what is suppose to happen at each paint event is the image
> is shifted down one pixel, then the top row of pixels get set with a color
> that represent the amplitude value from an FFT routine.
>
> I think I’ve got the set pixel part working as I can see the top row being
> filled with the correct pixel information, but getting this thing to shift
> down is not working.  I am sure it is probably a simple 2 or 3 line affair,
> but it just ain’t coming to me.  Graphic is not my strong suite.
>
> Can anyone point me in the correct direction.  Thanks.
>
>
> Jeff K. Steinkamp N7YG
> Tucson, AZ
> SCUD Missile Coordinates:
> N032-13-55.02 W110-55-52.79
> Registered Linux User: 420428
> ------------------------------------------------------
>
> Woman wanted: Intelligent, Tall, Physically fit, Redhead, age 22-35
>

Reply via email to