Shop OBEX P1 Docs P2 Docs Learn Events
Shifting graphics.spin video image to the left (centering). Is it possible? — Parallax Forums

Shifting graphics.spin video image to the left (centering). Is it possible?

Alexis64Alexis64 Posts: 42
edited 2011-04-19 18:48 in Propeller 1
Hi,

I have a small problem with some new LCDs on a project I am doing... I am using Graphics.spin and while it all works fine, The image on the LCD is not centered (horizontally). This is (i am sure) a problem with the LCDs but since they do not have an easy way to adjust the horizontal position, and before i take them apart to start swapping resistors, I was wondering if there is a simple way to patch graphics.spin to shift the image to the left a few pixels (see attached picture).

Thank you guys,

Alex

photo.JPG
640 x 529 - 71K

Comments

  • kwinnkwinn Posts: 8,697
    edited 2011-04-19 17:46
    You could try adjusting the number of pixels of the horizontal front and back porch ( hf and hb in the vga drivers ). To keep the timing the same you need to subtract 'x' pixels from the front porch and add 'x' pixels to the back porch. Judging by the image you have start by making 'x' about 25% of the current front porch value.
  • Alexis64Alexis64 Posts: 42
    edited 2011-04-19 18:44
    I am actually using the TV object - but your comment made me think and than it all made sense... In the TV object there is a parameter to set the horizontal offset 'doh! ...

    Setting tv_ho:=-70 just after the object initialization fixed and centered the screen perfectly :) ..

    Thank you for your help...

    Alex
    300 x 300 - 37K
  • kwinnkwinn Posts: 8,697
    edited 2011-04-19 18:48
    Happy to be of help. That's a very nice looking display on your project. Good luck with it.
Sign In or Register to comment.