Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating new bitmaps from chosen section of current bitmap

Status
Not open for further replies.

LEICJDN1

Technical User
Nov 27, 2002
201
GB
Hi,

Once again I am stumped and turning to this forum for assistance.
I am creating a program to allow detailes analysis of certain parts of Bitmaps. Can load the bitmap, and choose the area of interest with ease. However, what I need to do is display the initial bitmap (which is very high res) on the screen (i.e.smaller than actual size but no detail lost) so the user can then highlight the areas of interest -up to 12.
Then, each area, which is typically 200 pixels square will be loaded into the main window, zoomed in of course to allow detailed pixel count.

I can do all this using simple copy rect commands. However, I cannot work out how to allow analysis of the original bitmap at a size that will fit on the screen without losing pixel data, as copyrect just copys pixels from that canvas and not the high res original.

Is there a way to cut a portion from a bitmap and create a new bitmap from that, which could then be 'stretchdrawn' back into the main window for detailed analysis.

Have I got the 'concept' all wrong and need to handle my bitmaps differently?

Thanks for any suggesitons / advice.

JDN1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top