General information
Category:
Coding, syntax & commands
>I need to center a bitmap image file on the screen. I've used the .Picture property of _screen, but it tiles the image. How do I center it?
>
>TIA
Espero puedas leer spanish,pero igual la formula que cree la vas a interpretar,
esta trabaja en un metodo nuevo del form al cual le pasamos como parametro el nombre del Bmp a ver.
LParameters Nombre_foto
Thisform.Imagen1.Picture = Nombre_foto
*** Formula para centrar la foto
ThisForm.Imagen1.Top = (ThisForm.Height/2) - (ThisForm.Imagen1.Height/2)
ThisForm.Imagen1.Left = (ThisForm.Width/2) - (ThisForm.Imagen1.Width/2)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only