< /p>
image = CGDisplayCreateImageForRect(displays[i],
CGRectMake(x_start, y_start, width, height));
The problem is that it still I captured the window of my application. How to take a screenshot that treats my application window as transparent and only displays it behind my application window
Thanks in advance.
div>
I want to make something like pixie app on Mac OS X. I do this by photographing the area around the mouse Take a screenshot and place the screenshot in the image view.
image = CGDisplayCreateImageForRect(displays[i],
CGRectMake(x_start, y_start, width, height) );
The problem is that it also captures the window of my application. How can I take a screenshot that treats my application window as transparent and only displays it behind my application window
p>
Thanks in advance.
You can use CGWindowListCreateImage and set the sharingType of your own window to NSWindowSharingNone (so that you can skip it in the screenshot ). I’m not sure if this method is fast enough for your purposes.
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1158 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC