Yii Framework Forum: CThumbCreator fill with colors other than black - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CThumbCreator fill with colors other than black Rate Topic: -----

#1 User is offline   nitePhyyre 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 27-August 10

Posted 31 August 2010 - 10:48 AM

The CThumbCreator extension will fill your picture with a black background if the $thumb->square is set to true.

I need to modify the extension so that I can set the color. I tried,
$colorStorage = imagecolorallocate($this->tmp, 255, 255, 255);

as a test, but this made the whole image white. Does anyone know how to do what I'm asking?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users