Solved

Copy pics to scrap without clipping???

Posted on 1997-11-12
2
201 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
ID: 1291709
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
ID: 1291710
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 84
Separate files macro - Errors on larger data set 18 69
Process filename extension 3 184
VBA "SendKeys" Syntax for Multiple Keystrokes 7 108
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

785 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