Solved

Copy pics to scrap without clipping???

Posted on 1997-11-12
2
195 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 51
notReplace  challenge 53 116
only14 challenge 19 69
Unix Command -- Challenging  question 7 87
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

15 Experts available now in Live!

Get 1:1 Help Now