Cropping bitmap images

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
Post Reply
michaelk
Posts: 34
Joined: Wed Feb 10, 2010 8:38 am

Cropping bitmap images

Post 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.
PhilGray
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm

Re: Cropping bitmap images

Post 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.
michaelk
Posts: 34
Joined: Wed Feb 10, 2010 8:38 am

Re: Cropping bitmap images

Post by michaelk »

Thanks. This works well.
Post Reply