是用Mix()吗?我怎么做不出来?

解决方案 »

  1.   

    void Mix(CxImage & imgsrc2, ImageOpType op, long lXOffset = 0, long lYOffset = 0)Blends two images. op can be : OpAdd, OpAnd, OpXor, OpOr, OpMask, OpSrcCopy, OpDstCopy, OpSub, OpSrcBlend
      

  2.   

    int temp1,temp2;
    for(x=0;x<a->GetWidth();x++)
    for(y=0;y<a->GetHeight();y++)
    {
    temp1=a->GetPixelGray(x,y);
    temp2=b->GetPixelGray(x,y);
    temp1=(temp1+temp2)/2;
    a->SetPixelIndex(x,y,(BYTE)temp1);
    }
    //这儿是处理灰度图,彩色图类似