Solved

Copy pics to scrap without clipping???

Posted on 1997-11-12
2
186 Views
Last Modified: 2013-12-26
I am using Symantec C++ and the TCL and I wonder how I can copy the contents of a panorama to the scrap as a picture without having this picture being clipped to the visible area of the panorama.
The only solution I have found is to create an offscreen graphic world, and draw into it while recording the picture I will put to the scrap. But to avoid clipping, I have to initialize the offscreen world with a bitmap at least large enough to contain (display) my data. And this may be too much memory.
What is the right solution to this problem?

Thank's for helping me.

Jean Pierre
0
Comment
Question by:malrieu
2 Comments
 

Accepted Solution

by:
hawkfish earned 100 total points
Comment Utility
I believe that the problem you are having is that the clipping region of the current grafport is not as large as the picture.  One solution is to save the old region, ClipRect to PicHandle.bounds and then do the copy.
0
 

Author Comment

by:malrieu
Comment Utility
My question was silly, but, when when I realized it, I did not know how to remove it from the list. "Hawkfish" did its best to turn it into an intelligent question, and I thank him for that.
In fact, when you draw into an offscreen graffic world, the picture is not clipped to the bounds of the Gworld's bitmap. I got (erroneously) convinced of that because I was passing (without realizing) the same rect to OpenPicture() and to the initialisation of the Gworld. Thus, when I tried to reduce the size of the GWorld's bitmap, I was in fact reducing the bounds of my picture! Sorry for sending such a stupid question. And thanks to expert exchange.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now