请指教

解决方案 »

  1.   

    16*16点阵字库Windows\\Command\\Chs16.fon
      

  2.   

    [email protected]
    我想哦,SeekInRain(Arthur)能不能给我发一份
      

  3.   

    能不能给我一份,谢谢啦
    [email protected]
      

  4.   

    [email protected]
    请给我一份,证明没有倒分
      

  5.   

    片断gdImagePtr gdImageCreate(int sx, int sy)
    {
    int i;
    gdImagePtr im;
    im = (gdImage *) malloc(sizeof(gdImage));
    im->pixels = (unsigned char **) malloc(sizeof(unsigned char *) * sx);
    im->polyInts = 0;
    im->polyAllocated = 0;
    im->brush = 0;
    im->tile = 0;
    im->style = 0;
    for (i=0; (i<sx); i++) {
    im->pixels[i] = (unsigned char *) calloc(
    sy, sizeof(unsigned char));
    }
    im->sx = sx;
    im->sy = sy;
    im->colorsTotal = 0;
    im->transparent = (-1);
    im->interlace = 0;
    return im;
    }void gdImageDestroy(gdImagePtr im)
    {
    int i;
    for (i=0; (i<im->sx); i++) {
    free(im->pixels[i]);
    }
    free(im->pixels);
    if (im->polyInts) {
    free(im->polyInts);
    }
    if (im->style) {
    free(im->style);
    }
    free(im);
    }int gdImageColorClosest(gdImagePtr im, int r, int g, int b)
    {
    int i;
    long rd, gd, bd;
    int ct = (-1);
    long mindist = 0;
    for (i=0; (i<(im->colorsTotal)); i++) {
    long dist;
    if (im->open[i]) {
    continue;
    }
    rd = (im->red[i] - r);
    gd = (im->green[i] - g);
    bd = (im->blue[i] - b);
    dist = rd * rd + gd * gd + bd * bd;
    if ((i == 0) || (dist < mindist)) {
    mindist = dist;
    ct = i;
    }
    }
    return ct;
    }int gdImageColorExact(gdImagePtr im, int r, int g, int b)
    {
    int i;
    for (i=0; (i<(im->colorsTotal)); i++) {
    if (im->open[i]) {
    continue;
    }
    if ((im->red[i] == r) && 
    (im->green[i] == g) &&
    (im->blue[i] == b)) {
    return i;
    }
    }
    return -1;
    }int gdImageColorAllocate(gdImagePtr im, int r, int g, int b)
    {
    int i;
    int ct = (-1);
    for (i=0; (i<(im->colorsTotal)); i++) {
    if (im->open[i]) {
    ct = i;
    break;
    }
    }
    if (ct == (-1)) {
    ct = im->colorsTotal;
    if (ct == gdMaxColors) {
    return -1;
    }
    im->colorsTotal++;
    }
    im->red[ct] = r;
    im->green[ct] = g;
    im->blue[ct] = b;
    im->open[ct] = 0;
    return ct;
    }void gdImageColorDeallocate(gdImagePtr im, int color)
    {
    /* Mark it open. */
    im->open[color] = 1;
    }void gdImageColorTransparent(gdImagePtr im, int color)
    {
    im->transparent = color;
    }void gdImageSetPixel(gdImagePtr im, int x, int y, int color)
    {
    int p;
    switch(color) {
    case gdStyled:
    if (!im->style) {
    /* Refuse to draw if no style is set. */
    return;
    } else {
    p = im->style[im->stylePos++];
    }
    if (p != (gdTransparent)) {
    gdImageSetPixel(im, x, y, p);
    }
    im->stylePos = im->stylePos %  im->styleLength;
    break;
    case gdStyledBrushed:
    if (!im->style) {
    /* Refuse to draw if no style is set. */
    return;
    }
    p = im->style[im->stylePos++];
    if ((p != gdTransparent) && (p != 0)) {
    gdImageSetPixel(im, x, y, gdBrushed);
    }
    im->stylePos = im->stylePos %  im->styleLength;
    break;
    case gdBrushed:
    gdImageBrushApply(im, x, y);
    break;
    case gdTiled:
    gdImageTileApply(im, x, y);
    break;
    default:
    if (gdImageBoundsSafe(im, x, y)) {
     im->pixels[x][y] = color;
    }
    break;
    }
    }
      

  6.   

    头文件片断char gdFontGiantData[] = {
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,1,1,1,1,0,0,
    0,0,1,1,1,1,1,1,0,
    0,1,1,1,1,1,1,1,1,
    0,0,1,1,1,1,1,1,0,
    0,0,0,1,1,1,1,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,1,1,0,1,1,0,1,1,
    0,0,1,1,0,0,1,1,0,
    0,1,1,0,1,1,0,1,1,
    0,0,1,1,0,0,1,1,0,
    0,1,1,0,1,1,0,1,1,
    0,0,1,1,0,0,1,1,0,
    0,1,1,0,1,1,0,1,1,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,1,1,0,0,1,1,0,0,
    0,1,1,0,0,1,1,0,0,
    0,1,1,1,1,1,1,0,0,
    0,1,1,0,0,1,1,0,0,
    0,1,1,0,0,1,1,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,1,1,1,1,1,1,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,1,1,1,1,1,0,0,0,
    0,1,1,0,0,0,0,0,0,
    0,1,1,1,1,0,0,0,0,
    0,1,1,0,0,0,0,0,0,
    0,1,1,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,1,1,1,1,1,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,1,1,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,1,1,1,1,1,0,0,
    0,1,1,0,0,0,1,0,0,
    0,1,1,0,0,0,0,0,0,
    0,1,1,0,0,0,1,0,0,
    0,0,1,1,1,1,1,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,1,1,1,1,1,0,
    0,0,0,1,1,0,0,1,1,
    0,0,0,1,1,1,1,1,0,
    0,0,0,1,1,0,0,1,1,
    0,0,0,1,1,0,0,1,1,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,1,1,0,0,0,0,0,0,
    0,1,1,0,0,0,0,0,0,
    0,1,1,0,0,0,0,0,0,
    0,1,1,0,0,0,0,0,0,
    0,1,1,1,1,1,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,1,1,1,1,1,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,1,1,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,1,1,1,1,0,0,
    0,0,1,1,0,0,1,1,0,
    0,0,1,1,0,0,1,1,0,
    0,0,0,1,1,1,1,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,1,1,1,1,1,1,1,1,
    0,1,1,1,1,1,1,1,1,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,1,1,1,1,1,1,1,1,
    0,1,1,1,1,1,1,1,1,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,1,1,0,0,1,1,0,0,
    0,1,1,1,0,1,1,0,0,
    0,1,1,1,1,1,1,0,0,
    0,1,1,0,1,1,1,0,0,
    0,1,1,0,0,1,1,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,1,1,1,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,1,1,0,0,1,1,0,0,
    0,1,1,0,0,1,1,0,0,
    0,1,1,0,0,1,1,0,0,
    0,0,1,1,1,1,0,0,0,
    0,0,0,1,1,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,1,1,1,1,1,1,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,1,1,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    1,1,1,1,1,1,0,0,0,
    1,1,1,1,1,1,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    1,1,1,1,1,1,0,0,0,
    1,1,1,1,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,1,1,1,1,1,
    0,0,0,0,1,1,1,1,1,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,1,1,1,
    0,0,0,0,1,1,1,1,1,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    1,1,1,1,1,1,1,1,1,
    1,1,1,1,1,1,1,1,1,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,
    0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    1,1,1,1,1,1,1,1,1,
    1,1,1,1,1,1,1,1,1,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    1,1,1,1,1,1,1,1,1,
    1,1,1,1,1,1,1,1,1,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    1,1,1,1,1,1,1,1,1,
    1,1,1,1,1,1,1,1,1,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    1,1,1,1,1,1,1,1,1,
    1,1,1,1,1,1,1,1,1,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,