Professional Web Applications Themes

White background in GD possible? - PHP Development

How would you create a white background using GD? I am creating 100x100px thumbnails of products for a shopping cart, but the background is black :( -- Thanks, Justin....

  1. #1

    Default White background in GD possible?

    How would you create a white background using GD?
    I am creating 100x100px thumbnails of products for a shopping cart, but
    the background is black :(

    --
    Thanks,

    Justin.
    Justin Guest

  2. #2

    Default Re: White background in GD possible?

    Justin Sane wrote: 

    Draw a white square?
    Fill with white?


    --
    Oli
    Oli Guest

  3. #3

    Default Re: White background in GD possible?

    "Justin Sane" <net> wrote in message
    news:.. 


    I've noticed that usually the background color is the color you allocate
    first, so if you allocate white right after you've created the image handle,
    that should become the bg color.
    $imageHandle = ImageCreate(100,100);
    ImageColorAllocate($imageHandle,255,255,255);

    --
    Welcome to Usenet! Please leave tolerance, understanding
    and intelligence at the door. They aren't welcome here.
    eternal piste erection miuku gmail piste com


    Kimmo Guest

  4. #4

    Default Re: White background in GD possible?

    Em Tue, 17 May 2005 02:35:17 -0300, Kimmo Laine
    <com> escreveu:
     

    Thanks :)


    Justin.
    Justin Guest

Similar Threads

  1. Remove White Background
    By teammo@adobeforums.com in forum Adobe Photoshop & Illustrator
    Replies: 2
    Last Post: April 18th, 05:50 AM
  2. Grrrrr... white background!
    By Jeffro in forum Macromedia Fireworks
    Replies: 2
    Last Post: January 6th, 04:20 PM
  3. White Background Around a Photo
    By Joe in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 5
    Last Post: October 12th, 07:23 PM
  4. Photography with white background
    By gauge live in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 20
    Last Post: September 6th, 06:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139