• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
QCView transparent background + full window screenshot with title
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QCView transparent background + full window screenshot with title


  • Subject: QCView transparent background + full window screenshot with title
  • From: Alexey Galygin <email@hidden>
  • Date: Tue, 25 Apr 2006 19:26:06 +0400
  • Organization: MITME

Hi!

I want do following: two windows cube animation.
I have screenshot for each window. I have Quartz composition assigned to hidden panel in IB.
When user press Forward button on window 1, I hide window 1 and create panel with NSView from
hidden panel from IB... set face images then start QCView animation:


- (void) awakeFromNib
{
NSLog(@"wc1: awake");
if(myPanel==nil)
{
NSView *cv=[aw contentView];
myPanel=[[NSPanel alloc]initWithContentRect:[cv frame]
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered defer:NO];
[myPanel setContentView:cv];
[myPanel setHidesOnDeactivate:NO];
[myPanel setFrameAutosaveName:@"myPanel_sv"];
}
}




NSRect winFrame = [[self window] frame];
[qv setValue: im forInputKey: @"pic1"];
[qv setValue: imp forInputKey: @"pic2"];
[myPanel setFrame: winFrame display: YES];
[myPanel orderFront:self];
[qv start: self];
[self performSelector:@selector(showWP:) withObject: self afterDelay:1.1];


For better results I need answers to following questions:

1. How can I do cube animation on panel without title with transparent background?
I even trying to set erase color opacity to zero... Without result...
When I set two images to faces and start animation I see dirty track on area over cube... no transparency.


2. How can I do full window screenshot with title? Not only inside window NSView content...

I have:

[wp orderFront:self];
NSView * vwp = [wp contentView];
[vwp lockFocus];
NSBitmapImageRep *bitmapp = [[NSBitmapImageRep alloc] initWithFocusedViewRect:[vwp bounds]];
[vwp unlockFocus]; NSImage *imp = [[NSImage alloc] initWithSize:[bitmapp size]];
[imp addRepresentation:bitmapp];
[wp orderOut:self];


Unfortunately, this code make screenshot without windows title and his buttons...
Using screenshot by NSRect (as tip captureImageForRect:) is very slowly... And not working for me.


Any suggestions?


begin:vcard
fn:Alexey Galygin
n:Galygin;Alexey
org:MIEM;MITME
adr:;;;Moscow;;;Russia
email;internet:email@hidden
title:Chief Software Architect
tel;work:917-02-98
x-mozilla-html:TRUE
url:http://mif.polimercolor.ru
version:2.1
end:vcard

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: QCView transparent background + full window screenshot with title
      • From: Greg Herlihy <email@hidden>
  • Prev by Date: Re: Animated split view collapsing
  • Next by Date: strange problem with CoreData and SQLite persistent store
  • Previous by thread: Re: Using date and time values in coredata
  • Next by thread: Re: QCView transparent background + full window screenshot with title
  • Index(es):
    • Date
    • Thread