Page 1 of 1
Cropping bitmap images
Posted: Sun Oct 23, 2011 11:45 pm
by michaelk
I know how to resize .bmp files in Dyalog, but is there a simple way to remove/crop say the top 10% or the right 10% of a bitmap image without changing the scale of the rest of the image? The answer may be somewhere in the manuals (sorry if this is a silly question), but I haven't found it.
Re: Cropping bitmap images
Posted: Mon Oct 24, 2011 8:20 pm
by PhilGray
sorry if this is a silly question
... then maybe this answer is too simple ?
Presuming your Object is a 'Bitmap', simply use the 'CBits' property ( Integer Matrix ) to drop ( dyadic ↓ ) any chunk of the matrix you please.
Re: Cropping bitmap images
Posted: Tue Oct 25, 2011 4:23 am
by michaelk
Thanks. This works well.