PHP - GD
File : rectangle.php
 You are now viewing a dynamic php Gif Draw :-)
...note the white pixel in the middle of the red rectangle
 → 
<?
header('Content-Type:image/png');
$img=ImageCreate(345,123);
$white=ImageColorAllocate($img,0xFF,0xFF,0xFF);
$color=ImageColorAllocate($img,0xff,0x00,0x00);
ImageFilledRectangle($img,123,12,153,66,$color);
ImageLine($img,23,25,48,77,$color);
imagesetpixel($img,138,39,$white);
imagePNG($img);
?>
Equivalent formats :
  • $white=ImageColorAllocate($img,255,255,255);
  • $white=ImageColorAllocate($img,0xFF,0xFF,0xFF);
-------------------

Forum
Merge on fly
Hexaconverter

Each flag is composed by 3 images and they are are the same.
A design tip : Observe the tightness between the green text and the bottom of the rectangle image.
A full control in managing an image position can be only obtained by nesting the image in a table :
<table cellpadding=0 cellspacing=0><tr><td> <img src=img.gif></td></tr></table>