You're right. My bad.

On Wed, 30 Oct 2013, Olly wrote:

> 
> In Units/MMLAddon/PSInc/Wrappers/bitmap.inc:
> 
> > @@ -285,6 +285,16 @@ begin;
> >      Bmp[bitmap].Posterize(Bmp[result],po);
> >    end;
> >  end;
> > +
> > +function ps_ThresholdBitmap(bitmap: integer; Alpha, Beta: Integer; Method: TThreshMethod; C:Integer): integer; extdecl;
> > +begin
> > +  with CurrThread.Client.MBitmaps do
> > +  begin
> > +    result := CreateBMP(0, 0);
> > +    bmp[bitmap].Threshold(bmp[result], alpha, beta, method, c);
> 
> It creates a new bitmap to draw on-to, and I think you missed it bmp[bitmap].Threshold(bmp[result], alpha, beta, method, c);
> 
> as in it's drawing the thresholding onto a new bitmap, in this case the result
> 
> —
> Reply to this email directly or view it on GitHub.[jRjtUOn8P2ddy5ZJedouIaRRT10xqInapij6H-oYZ7viOkLyi_BWY-Z_LACHlxCx.gif]
> 
> 
>