texture dimension problem

Hi !
I want to draw two texture objects (say two rectangles)one using 1D texture and the other using 2D texture such that both looks exacltly same.
Can anyone help me how to do that ??

Yeah obviously, I want to use the same texture image for both the objects.