Do you ever wish you could turn a Java object into a stream of bytes as fast as it can be done in a native language like C++?
object
All posts tagged object
Reading blogs on the Internet is a good way to keep updated on what happens in the industry and to get short introductions to specific topics. When it comes to deeper, elaborated analysis however, there is nothing as a good book. The single book that has meant the most to me within coding is the now classic Design Patterns: Elements of Reusable Object-Oriented Software by GoF (the Gang of Four: Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides).
Reading blogs on the Internet is a good way to keep updated on what happens in the industry and to get short introductions to specific topics. When it comes to deeper, elaborated analysis however, there is nothing as a good book. The single book that has meant the most to me within coding is the now classic Design Patterns: Elements of Reusable Object-Oriented Software by GoF (the Gang of Four: Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides).
Flip on the BTC40 in your cubicle, and it’ll dispense 500,000-volt sparks of electricity. You’ll look like a deranged genius. Mwa-ha-ha!
Author: NeoScripter
Subject: Re: Image capturing an irregular object
Posted: Thu May 31, 2012 2:06 am (GMT -7)
Topic Replies: 1
| LauraMarie wrote: |
| Here is my problem…
I need to screen capture an area that is not rectangular, ie: tab that is actually made from three separate objects. If there was a way to caputure the contents of a polygon object that could work too. The end result would be to have a transparent area outside the rounded corners of the tab of the captured image gif or png. Any plugins do this? |
On Windows (or pretty much any operating system), I do not believe that there is a built-in method of capturing irregular objects. One way that you could do it would be to use an existing screen-capture plug-in, then cut out the pixels you do not need, and save the image with transparency.
There is a Windows API function that allows the capturing of just certain window-handles, sadly it does not capture the transparent portions of windows and merely adds white where transparency should be. I am not aware whether this feature would work if used on a window created with SetWindowRgn, though because both are relatively long-lived APIs, they may work well together. Even if it did end up working with SetWindowRgn created windows, this probably would not be of much help to you since you want to capture a separate object and the likelihood that it is a parented window created with SetWindowRgn is very low (applications use(d) that API for defining transparent windows).
The reason why this ancient API comes to mind is because you mentioned object shapes. If you really study the shape of the object and how it is drawn, you could determine a way of calculating it’s size and create a snapshot region according to the area which the object is using. If I come up with some type of example I will edit my post in order to make what I’m saying a bit more understandable, I probably shouldn’t be typing at 4:00 in the morning either.
_________________
"I do not know whether I was then a man dreaming I was a butterfly, or whether I am now a butterfly, dreaming I am a man." – Zhūangzi
Author: LauraMarie
Subject: Image capturing an irregular object
Posted: Wed May 30, 2012 8:04 pm (GMT -7)
Topic Replies: 0
Here is my problem…
I need to screen capture an area that is not rectangular, ie: tab that is actually made from three separate objects. If there was a way to caputure the contents of a polygon object that could work too. The end result would be to have a transparent area outside the rounded corners of the tab of the captured image gif or png.
Any plugins do this?
_________________
My Current Project:
http://www.slideagent.com
Author: shx
Posted: Wed May 16, 2012 3:10 pm (GMT -7)
Topic Replies: 4
I understand, I just want the Web Browser object to behave like the other web browsers do.
_________________
- Steven
Author: shx
Subject: WebBrowser object and YouTube
Posted: Wed May 16, 2012 11:10 am (GMT -7)
Topic Replies: 0
When I go to YouTube using Internet Explorer and play YouTube video what I see on the address bar is something like
http://www.youtube.com/watch?v=T3xq32m_FZM
when I open up YouTube in a web browser object and playing video what I see in "[WebBrowser1Addr]" is about:blank and not the URL as above.
Why ?
I would like to capture the url.
_________________
- Steven