Color query, at specific point on screen
I need to query the color value at a specific x,y point on
the global stage, regardless of whether there is an
image/canvas/etc there or not. I'd use getPixel(x,y) but that
depends on there being BitmapData to check, and like I said: I want
to investigate regardless of screen content.
Can anyone help? Thanks
quote:
Originally posted by:
atta707
Here is how you'll take a snapshot of your application:
var app:Application = Application.application as Application;
var bmd:BitmapData = new BitmapData(app.width, app.height);
bmd.draw(app);
var bm:Bitmap = new Bitmap(bmd);
var uic:UIComponent = new UIComponent();
uic.addChild(bm);
addChild(uic);
You can change 'app' in above code with stage and it should
work. the most important piece for you is the instance of
BitmapData; this class methods like getPixel and getPixel32 that
might do the trick for you!
Hope this helps.
ATTA
This worked, thanks! In order to gain a bit of speed (maybe)
can a certain area (say a canvas) be snapshot into the BitmapData
area, instead of the entire app window?
Similar Messages
-
Coloring of a (specific) row in ALV report-How?
Hi Experts,
Am looking to assign a color for a (specific)row in ALV report.......so, pls. let me know How to get it done?
thanqTABLES:LFA1.
SELECT-OPTIONS:LIFNR FOR LFA1-LIFNR.
DATA:BEGIN OF ITAB OCCURS 0,
LIFNR LIKE LFA1-LIFNR,
NAME1 LIKE LFA1-NAME1,
LAND1 LIKE LFA1-LAND1,
ORT01 LIKE LFA1-ORT01,
REGIO LIKE LFA1-REGIO,
SORTL LIKE LFA1-SORTL,
CFIELD(4) TYPE C,
END OF ITAB.
data:col(4).
data:num value '1'.
SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE LIFNR
IN LIFNR.
LOOP AT ITAB.
concatenate 'C' num '10' into col .
ITAB-CFIELD = col.
num = num + 1.
if num = '8'.
num = '1'.
endif.
MODIFY ITAB.
ENDLOOP.
TYPE-POOLS:SLIS.
DATA:FCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA:LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA:SORT TYPE slis_t_sortinfo_alv WITH HEADER LINE.
DATA:EVE TYPE SLIS_T_EVENT WITH HEADER LINE.
LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
LAYOUT-WINDOW_TITLEBAR = 'VENDORS DETAILS SCREEN'.
LAYOUT-EDIT = 'X'.
LAYOUT-info_fieldname = 'CFIELD'.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = SY-REPID
CHANGING
CT_FIELDCAT = FCAT.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT
TABLES
T_OUTTAB = ITAB.
this is for coloring cols
REPORT ZBHCOLOR_COLS.
TABLES:LFA1.
SELECT-OPTIONS:C_LIFNR FOR LFA1-LIFNR. " FOR GRID ONLY
PARAMETERS:LIST RADIOBUTTON GROUP ALV DEFAULT 'X',
GRID RADIOBUTTON GROUP ALV.
DATA:BEGIN OF ITAB OCCURS 0,
LIFNR LIKE LFA1-LIFNR,
NAME1 LIKE LFA1-NAME1,
LAND1 LIKE LFA1-LAND1,
ORT01 LIKE LFA1-ORT01,
SORTL LIKE LFA1-SORTL,
REGIO LIKE LFA1-REGIO,
COL TYPE LVC_T_SCOL,
END OF ITAB.
DATA:COLR TYPE LVC_S_SCOL.
SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF TABLE ITAB.
LOOP AT ITAB.
IF ITAB-LIFNR IN C_LIFNR.
COLR-FNAME = 'NAME1'.
COLR-COLOR-COL = '5'.
COLR-COLOR-INT = '1'.
COLR-COLOR-INV = '0'.
COLR-NOKEYCOL = 'X'.
APPEND COLR TO ITAB-COL.
COLR-FNAME = 'LIFNR'.
APPEND COLR TO ITAB-COL.
MODIFY ITAB.
ENDIF.
ENDLOOP.
TYPE-POOLS:SLIS.
DATA:FCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA:LAYOUT TYPE SLIS_LAYOUT_ALV.
LAYOUT-ZEBRA = 'X'.
layout-coltab_fieldname = 'COL'.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = SY-REPID
CHANGING
CT_FIELDCAT = FCAT.
IF LIST = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT
TABLES
T_OUTTAB = ITAB.
ELSEIF GRID = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT
TABLES
T_OUTTAB = ITAB.
ENDIF.
Reward points if useful. -
On my Mac Pro how can I get voiceover to start reading at a specific point in a document, and then continue on to the next paragraph and so on? Thank you. Ed
Welcome to the Apple family!!!!
How can I cause the VO cursor(box) show-up/start?
Press Control-Option and F5. The F5 key is located on the top row of keys 6th key over. This is a toggling "Keyboard Shortcut" for turning VoiceOver on and off.
How can I move the VO cursor to various sentences or paragraphs of an article and have it start reading ... and perhaps even continue reading on to the next paragraph(s) ... even to the end of the article?
How to read a website with VoiceOver
Step 1: Go to the Website
A quick keyboard shortcut is Command-L. This will jump you up to the address bar. Start typing where you want to go. i.e "www.thewebsite.com"
Step 2: Working with Webpage
VoiceOver will automatically start reading the website. You can pause the speech by hitting the 'Control Button'.
If VoiceOver does not being reading the webpage, then you might have to "Interact" with it. If VoiceOver say "HTML Content" then press Control-Option-Space-Down Arrow to interact with the webpage.
Use Control-Option-Right Arrow to move throught the website. This will speak "EVERYTHING" on the page.
Most website that I've found have their articles labeled as 'Heading'. You can jump from heading to heading, by pressing Control-Option-Shift-H.
If you'd like an itemized alphabetical listing of the site, press Control-Option-I
Press Control-Option-Space on the link or article you want to view.
Step 3. Reading from Top to Bottom
Once you found and clicked on the the article/link, use the same 'Heading' command, Control-Option-Shift-H to find the title.
After finding the title, press Control-Option-A will start reading from the title on.
Note: If there are any other items (ads, pictures, etc) it will read those too.
Tip: You might be able to activate a feature called the 'Reader'. The Reader isolates the article and elimanates the ads The keyboard command is Shift-Command-R. You can also find it in the Menu Bar (Command-Option-M) under the word 'View' then 'Show Reader'.
I am using a MACPro with OSX, probably Mavericks 10.9 (where would I look to see if that is the correct information?)
You can find this information under the 'Apple menu' in the Menu Bar. To access the Menu Bar, press Control-Option-M.
Go to Apple Menu > About This Mac. This will open up another window. Use Control-Option-Right Arrow until you hear 'Version'. If you purchased it brand new from Apple within the last six month, more than likely you have Mavericks.
Recommanded Articles.
AppleVis- Commonly used Keyboard Commands
Chapter 2: Learning VoiceOver Basics
Chapter 6: Browsing the internet
Apple Accessibility Resource Page
The 'Commands Help' Voiceover Menu. Control-Option-H-H. (hit H twice) is my best friend. It's a searchable VoiceOver Menu with most of the VoiceOver command. Example: You are looking for the 'Read Current Paragraph' keyboard command. Press Control-Option-H-H and then type Paragraph. It will then bring up all the commands with the word paragraph. I believe there are three.
As from the Trackpad Commands, I've copied and pasted below from Appendix A: Commands and Gestures
VoiceOver standard gestures
If you’re using a Multi-Touch trackpad, you can use VoiceOver gestures. VoiceOver provides a set of standard gestures for navigating and interacting with items on the screen. You can’t modify this set of gestures.
NOTE:Gestures that don’t mention a specific number of fingers are single-finger gestures.
General
Enable the Trackpad Commander and VoiceOver gestures
VO-Two-finger rotate clockwise
Disable the Trackpad Commander and VoiceOver gestures
VO-Two-finger rotate counterclockwise
Turn the screen curtain on or off
Three-finger triple-tap
Mute or unmute VoiceOver
Three-finger double-tap
Navigation
Force the VoiceOver cursor into a horizontal or vertical line when you drag a finger across the trackpad
Hold down the Shift key and drag a finger horizontally or vertically
Move the VoiceOver cursor to the next item
Flick right
Move the VoiceOver cursor to the previous item
Flick left
Move content or the scroll bar (depending on the Trackpad Commander setting)
Three-finger flick in any direction
Go to the Dock
This gesture moves the VoiceOver cursor to the Dock wherever it’s positioned on the screen
Two-finger double-tap near the bottom of the trackpad
Go to the menu bar
Two-finger double-tap near the top of the trackpad
Open the Application Chooser
Two-finger double-tap on the left side of the trackpad
Open the Window Chooser
Two-finger double-tap on the right side of the trackpad
Jump to another area of the current application
Press Control while touching a finger on the trackpad
Interaction
Speak the item in the VoiceOver cursor or, if there isn’t an item, play a sound effect to indicate a blank area
Touch (includes tap or dragging)
Select an item
Double-tap anywhere on the trackpad
You can also split-tap (touch one finger and then tap with a second finger on the trackpad)
Start interacting with the item in the VoiceOver cursor
Two-finger flick right
Stop interacting with the item in the VoiceOver cursor
Two-finger flick left
Scroll one page up or down
Three-finger flick up or down
Escape (close a menu without making a selection)
Two-finger scrub back and forth
Increase or decrease the value of a slider, splitter, stepper, or other control
Flick up (increase) or flick down (decrease)
Text
Read the current page, starting at the top
Two-finger flick up
Read from the VoiceOver cursor to the end of the current page
Two-finger flick down
Pause or resume speaking
Two-finger tap
Describe what’s in the VoiceOver cursor
Three-finger tap
Change how VoiceOver reads text (by word, line, sentence, or paragraph)
Press the Command key while touching a finger on the trackpad
Rotor
Change the rotor settings
Two-finger rotate
Move to the previous item based on the rotor setting
Flick up
Move to the next item based on the rotor setting
Flick down
To customize other gestures by assigning VoiceOver commands to them, use the Trackpad Commander.
Assigning VoiceOver commands to gestures
If you need a reminder about what a gesture does, press VO-K to start keyboard help, and then use the gesture on the trackpad and listen to the description.
Learning about keys, keyboard shortcuts, and gestures
Sorry lots of information. Enjoy. You -
Hello. I am trying to change the colors on my ical. I have been able to select a calendar group, click "get info" and then "other" in the color options and which point a a lot of color options are available. HOWEVER, I can't seem to select the color. I click on a new color and press enter and nothing happens...not sure what I am doing wrong.
What do you currently see?
Can you attach a screenshot?
*http://en.wikipedia.org/wiki/Screenshot
*https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
Use a compressed image type like PNG or JPG to save the screenshot.
Do you have the menu bar?
*Press the F10 key or tap the Alt key to bring up the hidden Menu bar.
Do you have any toolbars visible at all?
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
*https://support.mozilla.org/kb/how-to-use-full-screen
You can check for problems caused by a corrupted localstore.rdf file.
*http://kb.mozillazine.org/Corrupt_localstore.rdf -
How to rewind to a specific point?
I have a 30 gig. Ipod on which I like to listen to audible.com books. I just got a new Nano. On my 30 gig Ipod, I can rewind or fast forward to a SPECIFIC point of the book, not just to the very beginning or to the end. I can't seem to do this with the Nano, which allows me to go only to the very beginning or to the very end. What am I doing wrong? Thanks so much in advance.
Whilst listening to the audiobook, and the iPod is in the 'Now Playing' screen, press the centre button once. A small diamond will appear in the time scroller ad the current time point. Just use the scrollwheel to get to the time where you want to listen to.
Hope that helps -
Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?
Welcome to Apple Support Communities
Don't download MacKeeper. Users complain about this app and it damages OS X. Also, Mac OS X knows how to take care of itself, so you don't need any other cleaning application that may damage OS X. See > https://discussions.apple.com/docs/DOC-3691 -
How do I move video clips to specific points on a music track in iMovie?
I am trying to make a lip synch video and need to move my video clips to specific points on a musci track so that the words are in time with people singing - does anyone know how to do this? At the moment, I only seem able to put the clips in one after the other...
Hi
IMovie is Video clip oriented - meaning that Audio can not be put in first and video/photos added later.
So to do this I use black photos that I fill up the Video with first
Then Add audio
Then add Video/photos by Cutaway function or exact replacement (in time).
This is so much easier in any version of FINALCUT where one can build Audio first then create the video ontop of this.
Yours Bengt W -
Hi all,
Please let me know the process to track or find all the SAP Standard and custom objects. that got changed from a specific point of time.
Is there any function module or any table where this change log is maintained.?
I just only need the details ,wheather that SAP standard or Custom object has got changed or not.
Thanks in advanceHi RK v ,
I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
Have a look into table E070 and E071 .
Regards ,
Yogendra Bhaskar -
How do you set the font color for a specific entire row inside a JTable?
How do you set the font color for a specific entire row inside a JTable?
I want to change the font color for only a couple of rows inside a JTable.
I've seen some ways to possibly do this with an individual cell.
Clarification on changing the font color in an individual cell would be helpful too if
there is no easy way to do this for a row.hai,
Try out with this piece of code.Create your table and assign the renderer to each column in the table.
CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
for(int i=0;i<your_JTable.getColumnCount();i++)
your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
class CellColorRenderer extends JLabel implements TableCellRenderer
CellColorRenderer()
setOpaque(true);
setHorizontalAlignment(LEFT);
setVerticalAlignment(CENTER);
setBackground(Color.white);
setForeground(Color.black);
protected void setValue(Object value)
setText((value == null) ? "" : value.toString());
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
if(isSelected == true)
setForeground(Color.red);
else
setForeground(Color.black);
setValue(value);
return this;
regards,
bala -
Hyperlink to a specific point on a page
I am trying to insert a hyperlink which jumps to a specific point on a page. The way I would like it to work is so that I have a list of headings - an index - and when you click on a heading it jumps to that particular chapter in a text.
So far I have only been able to get a hyperlink to jump to the top of a page.Anchor
Search is your friend -
QuickTime: can't move to a specific point when playing .WMA audio files
I use a lot of .WMA audio files recorded on my Olympus Digital Voice recorder. Since the latest update of QuickTime I cannot move to a specific point in a file. When I click and drag on the diamond cursor it won't move. The only way to move through the file is to play it or 'fast' forward it - which takes ages.
I have the same problem. when playing wma or wmv file, simply just cannot drag the progress bar to a specific position. Just have to progress from the very beginning to the end. Once it has been played to the end, I can move the progress bar. Very weird
I have both flip4Mac and perian installed with the latest version.
Could anybody please help.
cheers -
Zoom into a specific point on a clip
How do I zoom to a specific point on a clip or picture?
Whenever I try to use this feature it just goes to the centre of the clip.
Thank-you.Make sure Image + Wireframe is selected in the Canvas:
Select the clip you want to zoom in on and reposition on the timeline by clicking on it. Once it is selected on the timeline, the turquoise box and cross hairs should appear in the canvas.
If you click and drag on one of the boxes on the corner, you can resize your image:
And if you click and drag on the image itself, you can change the clips position:
You may need to change the canvas display scale to see the handles after you zoom in:
MtD -
Jumping to a specific point in a clip
How can I jump to a specific point/frame in a clip? Example: I know a clip is exactly 3:40 long. How could I go to 3:37?
Thanks.If you have the clip loaded in the Viewer window and the Viewer window highlighted, it will take you to that point in the clip, if you have the Timeline highlighted, it will take you to that point in the Timeline. You can also save a few keystrokes by just hitting "3.37." to skip to 3 minutes and 37 seconds, for example.
-Zap -
Is there a way to draw gridlines at a specific point on a bubble chart?
I'm using Xcelsius 4.5 and (trying to) creating a bubble chart. I am using static min/max values for the x and y axes, but rather than drawing the gridlines in 1 or 2 divisions (i.e. the midpoint), I want to draw a grid line (both x and y) at a specific point -- is there any way to designate this point in Xcelsius?
I figured it out - I just adjusted my formula to draw the min/max such that my intersection is always the midpoint
-
Can I set a specific point on the page to go with a button?
I got a page of 1024x3072 and i need set a button to go on a specific point of the page, for example, from 650px to 724px just using a button.
So, my question is ¿can i do that?, ¿how?...ThanksNot supported.
Bob
Maybe you are looking for
-
How do i create a hyperlink in pages 5.1
In the past I used the inspector.. Now it's not available.
-
FDMEE Error 11.1.2.4
I installed on Windows 2012 and diagnostics come backs all green. I deployed a test Planning and Essbase cube successfully When I do in to FDMEE and click on "Source System" I get this error... org/codehaus/groovy/ast/ModuleNode.getStarImports()Ljava
-
How to give t-code for Query in SQVI
Hi how to assign t-code for the query written in SQVI Regards Smitha
-
Is any one else having issues with iMessages since iOS7?
Since iOS7 I have been having issues with iMessages. They just stop sending and I have to re-start my iPhone or iPad to get these working again. This is happening to my friends as well on different networks but all on iOS7. Is any one else having thi
-
How Delete all the data in all BI Models, just the data but not the model
Hi Gurus, i need to delete all the data of the cubes, PSA , etc , all the data of this models but not the model, how can i do this in a fast way? though a program? thanks