Problem changing size

Recommend this page to a friend!

      Captcha Numbers V2.1  >  All threads  >  Problem changing size  >  (Un) Subscribe thread alerts  
Subject:Problem changing size
Summary:Changing vars within class does not work!
Messages:2
Author:Nick Iredale
Date:2013-02-13 16:16:58
 

  1. Problem changing size   Reply   Report abuse  
Nick Iredale - 2013-02-13 16:16:58
I tried to increase the size of the image and the font size, but it makes no difference to either:

E.g.
var $size = 15;
var $angle = 10;
var $type = 'png';
var $height = 40;
var $width = 80;
to
var $size = 18;
var $angle = 10;
var $type = 'png';
var $height = 80;
var $width = 160;

  2. Re: Problem changing size   Reply   Report abuse  
Albert Demeter - 2019-03-17 11:12:49 - In reply to message 1 from Nick Iredale
Modified image size and font size usage. The previous version of the class was always calculating image size based on font size. The new version uses the width and height set in the class, it only increases this size if the nr.of chars to be displayed don't fit in the given width x height.

 

For more information send a message to info at phpclasses dot org.