Author Topic: Attach image to a DCL  (Read 10246 times)

0 Members and 2 Guests are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
Re: Attach image to a DCL
« Reply #30 on: February 24, 2013, 02:00:47 AM »
Thank you d2010 .

Thank you Pepe for the nice routines , that is great .  :-)

But sometimes the image size can not fit to the size of the DCL image which keep some of the image outside the
border of the DCL dialog .

Any idea please ?

Regards .

Pepe

  • Newt
  • Posts: 87
Re: Attach image to a DCL
« Reply #31 on: February 24, 2013, 07:58:56 AM »
Hi Coder,

I'm Glad to be helpful.

If you're writing about the app I posted, the size of the 'image' tile you need in DCL to show the bitmap is written at the top of the function generated. Remember: 'altura' means 'height' and 'ancho' means 'width', and proportions are like this:

WIDTH: ['widthinpíxels'+1] / 6.0
HEIGHT: ['heightinpíxeles'+1] / 13.0

Work with this to fit the bitmap.

Regards