If I want to add a drawing mode to TCastleImage.DrawFrom TDrawMode implements dmAnti mode how do I manipulate image pixels to achieve Anti effect

  • Thank you very much for guiding me
  • The cache template set by D3D implements anti
    FD3DDevice.SetRenderState(D3DRS_ALPHABLENDENABLE, iTrue);
    D3DDevice.SetRenderState(D3DRS_SRCBLEND, D3DBLEND_INVDESTCOLOR);
    FD3DDevice.SetRenderState(D3DRS_DESTBLEND, D3DBLEND_ONE);