imagen needs to be of type TImage.
change
imagen = LoadImage("image1.jpg",0)
to
imagen:TImage = LoadImage("image1.jpg",0)
Also make sure the image is in the same directory as your program since you're not specifying a path.
change
imagen = LoadImage("image1.jpg",0)
to
imagen:TImage = LoadImage("image1.jpg",0)
Also make sure the image is in the same directory as your program since you're not specifying a path.