find bounding box.

Giganews Newsgroups
Subject:find bounding box.
Posted by: steven smith (noo…@home.com)
Date:Wed, 30 Sep 2009

gday all, this should be easy but for some reason I cant work it out..say I
have a 100x100 pixel bitmap cleared to black. On this bitmap is a randomly
placed and shaped bitmap of white pixels.I need to find the bounding
rectangle of the white shape.ie. top,left,bottom,right.
thanks for any info.

Replies