Help for this page

Select Code to Download


  1. or download this
    Tiny, active code segment
    ...    
    ...
        $rgb=substr($buf, 0, 6, '');  # Nibble 6 bytes       
        $rgb2c{$rgb}++;    
    }
    
  2. or download this
        
    @rgb = keys %rgb2c;  << 1 line takes 28.648 min
    
  3. or download this
    my $fsize = -s [your file];   ## Find out how big the image is?
    my $arrsize = $fsize / 6;     ## Size of the array and hash
    ...
            $counter++;
        }
    }