Ps CS6 Color Sampler Cursor Hot Spot Inconsistent With Rest
I don't use the Color Sampler Tool much, but In checking something for another thread, I noticed the cursor now seems inconsistent with the cursors of the other tools.
Basically, I expected it to drop the sampler on the little crosshair, and it dropped it instead at the end of the dropper.
This used to make sense, and it's still consistent with the Eyedropper cursor (and with prior versions of Photoshop). But I find that now I've gotten used to the other new cursors, most of which now define the hot spot at the upper-left, it didn't do what was expected.
I guess there's not really a good solution for this, other than to just get used to it.
-Noel
That's kind of the point, R_Kelly.
Adobe changed the behavior of SOME of the cursors in Ps CS6 to have the hot spot at the upper left, but they specifically DIDN'T change the one for the samplers. The ones that work that way have something functional-looking at the upper-left of the cursor.
I used to always just know that the end of the dropper was where the action was going to be. NOW, since so many of the cursors have a shape and that extra little tool at the upper-left, it triggered the expectation that in this case the "thing" at the upper-left was where the action was going to be.
Here are some examples:
-Noel
Similar Messages
-
How do I set a PNG cursor hot spot?
I am trying to set the hot spot for a PNG cursor in a CS6 plugin (Windows) I have searched for a solution but I can't find one. So far I am able to set the cursor using sAIUser->SetCursor() but I don't know how to set its hot spot. Can anyone provide an example of how to set the hot spot of a PNG cursor?
The SDK does this in the AnnotatorTool sample. It's an xml file that describes the hotspot.
<?xml version='1.0'?>
<prop.map version='1'>
<prop.list>
<prop.pair>
<key>DVA_CursorData</key>
<string>1.0</string>
</prop.pair>
<prop.pair>
<key>kHotSpot</key>
<array>
<array.type><int type='signed' size='32'/></array.type>
<int type='signed' size='32'>13</int>
<int type='signed' size='32'>12</int>
</array>
</prop.pair>
</prop.list>
</prop.map>
In the end, we gave up and just used platform code like Andrew did. -
Hot spot wifi with linksys e4200
how to setup a wifi hotspot using linksys E4200, and so open the browser it ask for login and password
Hi Fabio,
Thank you for your question. However, the Small Business Support Community is limited to Cisco Small Business Products.
Your question relates to a Product which our community would not be able to help you with.
The best area for you to post your question would be at the Linksys support communty for routers.
Regards,
Cindy Toy
Cisco Small Business Community Manager
for Cisco Small Business Products
www.cisco.com/go/smallbizsupport
twitter: CiscoSBsupport -
Hi, I've created a simple image with a hotspot but when I
export as a jpeg I loose the hotspot. I've also tried to export
jpeg + html and tried to paste the generated code in the sourcecode
of my GL page but it's not working. What am I missing? I'm using FW
CS3, GL CS2 and OS 10.4.11 all updated to latest versions.>wow! 100,000 shots...
Really. It's nice to see someone has job security in this economy.
>Everything I have read so far says to avoid using flash. The reasons given were: distraction (for the employees), uneven color (due to "hot spots") and time to recharge the flash between firing.
Flash/strobe as far as I'm concerned, is going to be much more consistent color and exposure wise than tungsten. Flash tubes tend to stay much more constant over time and will certainly last much longer. And you won't have hot spots if you do as Ann says:
>That means having at least two identical units positioned at equal distances on either side between the camera and the blue print and at a 45° angle from the print.
Considering the enormity and apparent historic or other importance---and not knowing what sort of equipment you already have---I certainly wouldn't consider it imprudent to figure in an investment of a few hundred to (more likely) a few thousand dollars in order to make this happen as expeditiously as possible.
And if you're going to be doing 100,000 shots straight down, either make sure you have a comfortable set-up and/or enroll in a yoga class, because that's gonna be tough on the back.
>I still think someone is exaggerating or pulling my leg.
Somehow, I think that as well. Otherwise, we'll see you when you surface in 3.42 years. -
HT3574 bluetooth and hot spot iphone5 to Ipad 2 and Mac????
Hi, I just got an Iphone 5 and first of all I am not able to pair my Ipad and Mac to the Iphone with Bluetooth. I also just got the personal hotspot on the Iphone 5 but I doesn't work with bluetooth, nor with USB clabe and neither with the other network.
Thanks
SaraHi - thanks for your response.
I do not use bluetooth - Should I. I am using the hot spot capability with the new Ipad Air in the same way that I used it with my Mac Book pro. I have reset the connection but not restored the IOS as yet since it is only one month old. I have the new Air. I thought that the connection was supposed to use cellular data "on" and "personal hot spot on" that enables the phone to act like a WiFi connection similar to a router we have at home. I learned from a discussion with Apple that the Ipad once it goes to sleep will disconnect from the network.
To be clear I - I got the Ipad to use as an internet/mail connection using the Iphone hot spot in lieu of lugging along the Mac Book Pro.
Hopefully that clarifies any issues. I will not really know until I go back to my New Mexico House is signal strength is an issue. I think not
thanks
k4karol -
Quickstart to creating Window with Buttons+Hot Spots+
I'm a newbie too Java.
Would someone be kind enough to point me to a quick start... tutoral... sample code or whatever...
- to create a window with...
- Buttons
- Hot Spots
- Hot Objects
- Data Entry Fields, etc...
This will be a demo prototype for an app that may run both as a stand-alone application and a web based application... multi-platform...
thanks for any assistance.
WillCheck out the [url http://java.sun.com/docs/books/tutorial/]Creating a GUI with JFC/Swing tutorial.
-
Hi there,
I'm using Dreamweaver 8 to make a new website.
For some reason I can't make a hot spot. I've only made one
website before and just checked on those pages and was able to
click on the hot spot tools and draw a hot spot.
Then I go to my new website and click on an image and then
click on the hot spot tools and try to draw a hot spot on the
picture- what happens is the picture tries to "drag and drop". That
is the command that dreamweaver says is happening when I try to try
to draw the hot spot. ???????
What went wrong???
Here is the Html code behind the photo I'm trying to draw the
hot spot on:
<tr>
<td colspan="3"><img
src="graphics-headers/skyfooter.jpg" alt="Sky Footer" width="800"
height="45" /></td>
</tr>
<tr>
Any help at all would be greatly appreciated as I don't know
what I did in the code that's preventing me from drawing them.
As I'm just starting making all my pages off my template-
found another problem:
Template won't update all the changes. For instance: Made a
change to the copyright footer - capitilized first letter- this
change won't update. Made changes to the page properties with a
link color change, also changed editable region- these changes
updated.
Weird!!! So the pages made from the template will be updated
only part ways from the original Template!
What did I do wrong? My first website went very well.
www.zoodoc-stories.comWhen you create a polygonal hotspot, you don't click and
drag. You click at
the vertex of each side. Is that what you are doing?
Here are seven common mistakes that will result in changes
not propagating
from Template to child -
1. Rename the Templates folder
2. Move the Templates folder to some other folder level in
the site other
than root level
3. Move a template out of the Templates folder.
4. Make changes to an editable region of the template (which
will not
propagate)
5. Assume that template changes can be uploaded to the server
without also
uploading the changed local files
6. Corrupt the site cache so that the link between template
and child page
is broken
7, Improperly create your child pages by simply opening the
template,
adding page specific content, and resaving the template with
an *.html
extension rather that its *.dwt extension. (you can tell if
this is the case
by looking at the code on a child page - if you see anything
like <!--
TemplateBeginEditable... then this is what you have done)
The 6th problem can be repaired by using SITE | Advanced >
Recreate Site
Cache, and the six others can be fixed by just not doing
them. Have you
done any of those?
Or, read this -
http://www.adobe.com/go/dd83ba8b
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"sculpturedolls" <[email protected]> wrote
in message
news:[email protected]...
> Hi there,
>
> I'm using Dreamweaver 8 to make a new website.
>
> For some reason I can't make a hot spot. I've only made
one website before
> and
> just checked on those pages and was able to click on the
hot spot tools
> and
> draw a hot spot.
>
> Then I go to my new website and click on an image and
then click on the
> hot
> spot tools and try to draw a hot spot on the picture-
what happens is the
> picture tries to "drag and drop". That is the command
that dreamweaver
> says is
> happening when I try to try to draw the hot spot.
>
> What went wrong???
>
> Here is the Html code behind the photo I'm trying to
draw the hot spot on:
>
> <tr>
> <td colspan="3"><img
src="graphics-headers/skyfooter.jpg" alt="Sky Footer"
> width="800" height="45" /></td>
> </tr>
> <tr>
>
> Any help at all would be greatly appreciated as I don't
know what I did in
> the
> code that's preventing me from drawing them.
>
> ----------------------------
>
> As I'm just starting making all my pages off my
template- found another
> problem:
>
> Template won't update all the changes. For instance:
Made a change to the
> copyright footer - capitilized first letter- this change
won't update.
> Made
> changes to the page properties with a link color change,
also changed
> editable
> region- these changes updated.
>
> Weird!!! So the pages made from the template will be
updated only part
> ways
> from the original Template!
>
> What did I do wrong? My first website went very well.
> www.zoodoc-stories.com
>
> -
"color sampler tool" equivalent in color?
Hi,
Is there an equivalent to the 'color sampler tool' found in Photoshop in Color? I'm looking for a way to sample a pixel or small group of pixels (maybe a 5x5 square?) in a given frame and get numerical RGB data for that sample, but cant seem to find a tool in Color. Does a feature like this exist in Color (and if not, is there a workaround that would give me similar information)?
thanks in advance!You can't get an "integrated" medially-dimensioned RGB value picker, but there are three single-pixel samplers available in the RGB scope display. They are explained in the manual as to use, etc.
These numbers are useless in 999,999 out of a million cases. COLOR is not Photoshop, and I don't know many colorists who paint by numbers. "Many" being the numeral "zero". Why, is because there is no "match" tool, and there is no method for directly entering values... only offsets, which is going to be a "poke it and see" kind of process. The only useful application for a COLOR pixel scrub is within Secondaries, which will place a cursor on the HSL curve adjustment windows, so that operator's aren't just stabbing wildly at that adjustment...
jPo -
Am I nuts here, or is this something with my particular machine? I'm running Photoshop CS4 (11.0.1) and I'm seeing the following:
Create a new image.
Add a folder.
Add a mask to that folder (I've done this with a raster mask, not a vector)
Create an adjustment layer inside that folder (I've tried this with curves, hue/sat, and/or channel mixer).
Duplicate the folder, and invert the mask on the copy.
Highlight an adjustment layer (either one).
Put out a color sampler inside the area masked by the current folder/adjustment layer. This becomes sampler #1. This shows the current values (correctly).
Put out a color sampler OUTSIDE the area masked by the current folder/adjustment layer. This becomes sampler #2. This shows no values (correctly).
Highlight the adjustment layer in the second masked folder.
Both samplers now show no value (incorrect).
Delete sampler #1. The new #1 now shows the current values (correct).
Recreate the other sampler (now at #2). Sampler #2 does not show color values (correct).
Highlight the first adjustment layer again.
Both samplers now show no value (incorrect).
It appears that *all* color samplers are either using the masked area of sampler #1, or combining the masked area of all lower numbered samplers, to determine if they should calculate values. The workaround is to remove all samplers every time you switch masked folders (which can get a bit insane if you have a lot of masked folders). This is not the way it worked in CS3.
Can anyone else duplicate this issue? Or is this unique to my machine? I'm running a fresh install (less than a week old) on Mac OS X 10.5.8, and I've updated to PS 11.0.1.
Message was edited by: achbed
Added version informationSimply put: Color Samplers will report no information with a Color Adjustment layer selected if it is contained in a masked Group and if the #1 Color Sampler is in the masked region.
The cursor sampler WILL work however. Unfortunately, I often need the mouse elsewhere while making adjustments.
This makes working in masked groups quite bothersome so any help would be appreciated. -
hi.....
whats the event for hotspot or single click on node event
thanks.Hi,
If you want to get it through grid you can go through the sample code...
The sample program explains on how to achieve hotspot apply the same for alv tree...
REPORT Z_ALV_HOTSPOT.
TABLES:EKKO.
SELECT-OPTIONS:S_EBELN FOR EKKO-EBELN.
INTERNAL TABLE FOR EKKO
DATA: TB_EKKO TYPE STANDARD TABLE OF EKKO,
INTERNAL TABLE FOR EKPO
TB_EKPO TYPE STANDARD TABLE OF EKPO,
DA_TOP TYPE REF TO CL_DD_DOCUMENT,
DW_TOP TYPE REF TO CL_DD_DOCUMENT.
DATA:
GRIDS
EKKO_GRID TYPE REF TO CL_GUI_ALV_GRID,
EKPO_GRID TYPE REF TO CL_GUI_ALV_GRID,
CONTAINERS
EKKO_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
EKPO_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
TOP_OF_PAGE_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
DTOP_OF_PAGE_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
DMAIN_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
MAIN_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
DSPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
LAYOUT
X_LAYOUT TYPE LVC_S_LAYO,
WORK AREA
X_EKKO LIKE EKKO.
DATA: FLAG TYPE C,
flag_top type c.
CLASS LCL_HANDLER DEFINITION
CLASS LCL_HANDLER DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:HANDLER_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF
CL_GUI_ALV_GRID IMPORTING E_ROW_ID.
CLASS-METHODS:HANDLER_TOP_OF_PAGE FOR EVENT TOP_OF_PAGE OF
CL_GUI_ALV_GRID .
ENDCLASS. "LCL_HANDLER DEFINITION
CLASS LCL_HANDLER IMPLEMENTATION
CLASS LCL_HANDLER IMPLEMENTATION.
METHOD HANDLER_HOTSPOT_CLICK.
CLEAR X_EKKO.
CLEAR TB_EKKO.
READ TABLE TB_EKKO INDEX E_ROW_ID-INDEX INTO X_EKKO.
IF SY-SUBRC = 0.
PERFORM GET_ITEM_DETAILS USING X_EKKO-EBELN.
ENDIF.
ENDMETHOD. "HANDLER_HOTSPOT_CLICK
METHOD HANDLER_TOP_OF_PAGE.
CALL METHOD DA_TOP->ADD_TEXT
EXPORTING
TEXT = 'Top Of Page'.
CALL METHOD DA_TOP->DISPLAY_DOCUMENT
EXPORTING
PARENT = TOP_OF_PAGE_CONTAINER.
if flag_top = 'X'.
CALL METHOD DW_TOP->ADD_TEXT
EXPORTING
TEXT = 'ITEM Top Of Page '.
CALL METHOD DW_TOP->DISPLAY_DOCUMENT
EXPORTING
PARENT = DTOP_OF_PAGE_CONTAINER.
flag_top = ' '.
endif.
ENDMETHOD. "HANDLER_TOP_OF_PAGE
ENDCLASS. "LCL_HANDLER IMPLEMENTATION
*& Module STATUS_0100 OUTPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'ABC'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Form GET_DATA
MODULE GET_DATA OUTPUT.
SELECT * UP TO 5 ROWS INTO TABLE TB_EKKO FROM EKKO WHERE EBELN IN
S_EBELN.
ENDMODULE. " GET_DATA
START OF SELECTION.
START-OF-SELECTION.
CALL SCREEN 100.
*& Module DISPLAY_DATA OUTPUT
text
MODULE DISPLAY_DATA OUTPUT.
CREATING CONTAINER OBJ*******
CREATE OBJECT MAIN_CONTAINER
EXPORTING
CONTAINER_NAME = 'CONT1'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT SPLITTER
EXPORTING TOP = 5
PARENT = MAIN_CONTAINER
ROWS = 2
COLUMNS = 1.
CALL METHOD SPLITTER->GET_CONTAINER
EXPORTING
ROW = 1
COLUMN = 1
RECEIVING
CONTAINER = TOP_OF_PAGE_CONTAINER.
CALL METHOD SPLITTER->GET_CONTAINER
EXPORTING
ROW = 2
COLUMN = 1
RECEIVING
CONTAINER = EKKO_CONTAINER.
CREATING GRID OBJ AND ASSAIGNING TO CONTAINER ****
CREATE OBJECT EKKO_GRID
EXPORTING
I_PARENT = EKKO_CONTAINER
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LAYOUT SETTINGS ***
X_LAYOUT-ZEBRA = 'X'.
X_LAYOUT-KEYHOT = 'X'.
TO DISPLAY TB_EKKO CONTENTS ********
CALL METHOD EKKO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'EKKO'
IS_LAYOUT = X_LAYOUT
CHANGING
IT_OUTTAB = TB_EKKO
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
***REGESTRING HANDLER FOR HOT SPOT CLICK EVENT
SET HANDLER LCL_HANDLER=>HANDLER_HOTSPOT_CLICK FOR EKKO_GRID.
SET HANDLER LCL_HANDLER=>HANDLER_TOP_OF_PAGE FOR EKKO_GRID.
For Top Of Page
CREATE OBJECT DA_TOP
EXPORTING STYLE = 'ALV_GRID'.
CALL METHOD DA_TOP->INITIALIZE_DOCUMENT.
CALL METHOD EKKO_GRID->LIST_PROCESSING_EVENTS
EXPORTING
I_EVENT_NAME = 'TOP_OF_PAGE'
I_DYNDOC_ID = DA_TOP.
ENDMODULE. " DISPLAY_DATA OUTPUT
*& Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CANCEL'.
LEAVE TO SCREEN 0.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'OTHERS'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form GET_ITEM_DETAILS
FORM GET_ITEM_DETAILS USING P_EKKO_EBELN TYPE EKKO-EBELN.
CLEAR TB_EKPO[].
SELECT * UP TO 5 ROWS INTO TABLE TB_EKPO FROM EKPO WHERE EBELN =
P_EKKO_EBELN.
IF FLAG IS INITIAL.
FLAG = 'X'.
CREATING CONTAINER OBJ*******
CREATE OBJECT DMAIN_CONTAINER
EXPORTING
CONTAINER_NAME = 'CONT2'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT DSPLITTER
EXPORTING TOP = 5
PARENT = DMAIN_CONTAINER
ROWS = 2
COLUMNS = 1.
CALL METHOD DSPLITTER->GET_CONTAINER
EXPORTING
ROW = 1
COLUMN = 1
RECEIVING
CONTAINER = DTOP_OF_PAGE_CONTAINER.
CALL METHOD DSPLITTER->GET_CONTAINER
EXPORTING
ROW = 2
COLUMN = 1
RECEIVING
CONTAINER = EKPO_CONTAINER.
CREATING GRID OBJ AND ASSAIGNING TO CONTAINER ****
CREATE OBJECT EKPO_GRID
EXPORTING
I_PARENT = EKPO_CONTAINER
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
LAYOUT SETTINGS ***
X_LAYOUT-ZEBRA = 'X'.
TO DISPLAY TB_EKPO CONTENTS ********
CALL METHOD EKPO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'EKPO'
IS_LAYOUT = X_LAYOUT
CHANGING
IT_OUTTAB = TB_EKPO
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SET HANDLER LCL_HANDLER=>HANDLER_TOP_OF_PAGE FOR EKPO_GRID.
For Top Of Page
CREATE OBJECT DW_TOP
EXPORTING STYLE = 'ALV_GRID'.
CALL METHOD DW_TOP->INITIALIZE_DOCUMENT.
flag_top = 'X'.
CALL METHOD EKPO_GRID->LIST_PROCESSING_EVENTS
EXPORTING
I_EVENT_NAME = 'TOP_OF_PAGE'
I_DYNDOC_ID = DW_TOP.
ENDFORM. " GET_ITEM_DETAILS
<b>Reward points for all helpful answers.</b>
Regards,
Azaz Ali. -
Brush is constrained to 90º and appears as Color Sampler Tool
I'm having a suprise difficulty with my brush tool in that its cursor appears as the color sampler icon and it is constrained to 90 or 180 degree painting (sometimes just 90). Everything was working normally with my last use a day or so ago.
Other facts:
I've downloaded the latest update
Caps lock is not on.
I'm unable to right click in the options bar and reset all tools
I'd appreciate any help available. Thanks!Apple released the 10.6.7 update for OS X today. This update corrects an issue introduced in the 10.6.5 update that affected modifier keys while using Photoshop.
More details, including how to install the update, are available in this Knowledge Base document:Alert "Delete the Adobe Photoshop Settings file?" | Tools, functions behave strangely | Photoshop CS5 | Mac OS 10.6.5, 10.6.6 -
CODE: A simple desktop color sampler and JColorChooser Panel based on it.
// ColorSamplerColorChooserPanel.java
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import javax.swing.Icon;
import javax.swing.JColorChooser;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.colorchooser.AbstractColorChooserPanel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
* A simple ColorChooserPanel for JColorChooser based on ColorSampler.
* @author Sandip V. Chitale
* @version 1.0
* @see ColorSampler
public class ColorSamplerColorChooserPanel
extends AbstractColorChooserPanel
implements ChangeListener
private boolean isAdjusting = false;
private ColorSampler colorSampler;
public ColorSamplerColorChooserPanel() {
colorSampler = new ColorSampler();
colorSampler.addChangeListener(this);
public void stateChanged(ChangeEvent ce) {
getColorSelectionModel().
setSelectedColor(colorSampler.getSelectedColor());
// Implementation of AbstractColorChooserPanel
* Return display name.
* @return a <code>String</code> value
public String getDisplayName() {
return "Color Sampler";
* Update the chooser.
public void updateChooser() {
if (!isAdjusting) {
isAdjusting = true;
colorSampler.
showColor(getColorSelectionModel().getSelectedColor(), false);
isAdjusting = false;
* Build the chooser panel.
public void buildChooser() {
setLayout(new BorderLayout());
add(colorSampler, BorderLayout.NORTH);
* Return small icon.
* @return an <code>Icon</code> value
public Icon getSmallDisplayIcon() {
return null;
* Return large icon.
* @return an <code>Icon</code> value
public Icon getLargeDisplayIcon() {
return null;
* Return font.
* @return a <code>Font</code> value
public Font getFont() {
return null;
* <code>ColorSampler</code> test.
* @param args a <code>String[]</code> value
public static void main(String[] args) {
try {
UIManager.
setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
final JFrame frame = new JFrame("Color Sampler Color Chooser");
JColorChooser colorChooser = new JColorChooser();
colorChooser.addChooserPanel(new ColorSamplerColorChooserPanel());
frame.setContentPane(colorChooser);
frame.pack();
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// ColorSampler.java
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Point;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.datatransfer.StringSelection;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.BoxLayout;
import javax.swing.event.ChangeEvent;
import javax.swing.event.EventListenerList;
import javax.swing.event.ChangeListener;
* A simple desktop color sampler. Drag mouse from the color sample
* label and release mouse anywhere on desktop to sample color at that
* point. The hex string for the color is also copied to the system
* clipboard.
* Note: Uses java.awt.Robot.
* @author Sandip V. Chitale
* @version 1.0
public class ColorSampler extends JPanel {
private JLabel sampleColorLabel;
private JLabel colorLabel;
private JTextField colorValueField;
private Robot robot;
* Creates a new <code>ColorSampler</code> instance.
public ColorSampler() {
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
setBorder(BorderFactory.createEtchedBorder());
Font font = new Font("Monospaced", Font.PLAIN, 11);
sampleColorLabel = //new JLabel(new ImageIcon(getClass().getResource("ColorSampler.gif")), JLabel.CENTER);
new JLabel(" + ", JLabel.CENTER);
sampleColorLabel.setBorder(BorderFactory.createEtchedBorder());
sampleColorLabel
.setToolTipText("<html>Drag mouse to sample the color.<br>" +
"Release to set color and save hex value in clipboard.");
add(sampleColorLabel);
colorValueField = new JTextField(9);
colorValueField.setFont(font);
colorValueField.setEditable(false);
colorValueField.setBorder(BorderFactory.createLoweredBevelBorder());
add(colorValueField);
colorLabel = new JLabel(" ");
colorLabel.setFont(font);
colorLabel.setOpaque(true);
colorLabel.setBorder(BorderFactory.createEtchedBorder());
add(colorLabel);
showColor(colorLabel.getBackground(), false);
try {
robot = new Robot();
} catch (AWTException e) {
System.err.println(e);
sampleColorLabel.addMouseListener(
new MouseAdapter() {
public void mousePressed(MouseEvent me) {
SwingUtilities.getWindowAncestor(ColorSampler.this)
.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
public void mouseReleased(MouseEvent me) {
Point p = me.getPoint();
SwingUtilities.convertPointToScreen(p, me.getComponent());
sampleColorAtPoint(p, false);
SwingUtilities.getWindowAncestor(ColorSampler.this)
.setCursor(Cursor.getDefaultCursor());
sampleColorLabel.addMouseMotionListener(
new MouseMotionAdapter() {
public void mouseDragged(MouseEvent me) {
Point p = me.getPoint();
SwingUtilities.convertPointToScreen(p, me.getComponent());
sampleColorAtPoint(p, true);
SwingUtilities.getWindowAncestor(ColorSampler.this)
.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
public Color getSelectedColor() {
return colorLabel.getBackground();
public void setSelectedColor(Color color) {
if (color.equals(getSelectedColor())) {
return;
showColor(color, false);
public String getSelectedColorString() {
return getHexStringOfColor(getSelectedColor());
public void sampleColorAtPoint(Point p, boolean temporary) {
showColor(robot.getPixelColor(p.x, p.y), temporary);
void showColor(Color color, boolean temporary) {
colorLabel.setBackground(color);
colorValueField.setText(getHexStringOfColor(color));
colorValueField.selectAll();
if (!temporary) {
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(
new StringSelection(getHexStringOfColor(color)),null);
fireStateChanged();
private String getHexStringOfColor(Color c) {
int r = c.getRed();
int g = c.getGreen();
int b = c.getBlue();
String rh = Integer.toHexString(r);
if(rh.length() < 2) {
rh = "0" + rh;
String gh = Integer.toHexString(g);
if(gh.length() < 2) {
gh = "0" + gh;
String bh = Integer.toHexString(b);
if(bh.length() < 2) {
bh = "0" + bh;
return ("#"+rh+gh+bh).toUpperCase();
* Only one <code>ChangeEvent</code> is needed per model instance
* since the event's only (read-only) state is the source property.
* The source of events generated here is always "this".
protected transient ChangeEvent changeEvent = null;
protected EventListenerList listenerList = new EventListenerList();
* Adds a <code>ChangeListener</code> to the model.
* @param l the <code>ChangeListener</code> to be added
public void addChangeListener(ChangeListener l) {
listenerList.add(ChangeListener.class, l);
* Removes a <code>ChangeListener</code> from the model.
* @param l the <code>ChangeListener</code> to be removed
public void removeChangeListener(ChangeListener l) {
listenerList.remove(ChangeListener.class, l);
* Returns an array of all the <code>ChangeListener</code>s added
* to this <code>DefaultColorSelectionModel</code> with
* <code>addChangeListener</code>.
* @return all of the <code>ChangeListener</code>s added, or an empty
* array if no listeners have been added
* @since 1.4
public ChangeListener[] getChangeListeners() {
return (ChangeListener[])listenerList.getListeners(
ChangeListener.class);
* Runs each <code>ChangeListener</code>'s
* <code>stateChanged</code> method.
* <!-- @see #setRangeProperties //bad link-->
* @see EventListenerList
protected void fireStateChanged()
Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -=2 ) {
if (listeners[i] == ChangeListener.class) {
if (changeEvent == null) {
changeEvent = new ChangeEvent(this);
((ChangeListener)listeners[i+1]).stateChanged(changeEvent);
* <code>ColorSampler</code> test.
* @param args a <code>String[]</code> value
public static void main(String[] args) {
final JFrame frame = new JFrame("Desktop Color Sampler");
frame.setContentPane(new ColorSampler
frame.pack();
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}Hi vg007, what version LabVIEW are you using? I found an example in the NI Example Finder (LabVIEW 2014) that might be helpful to accomplish what you are trying to do. In LabVIEW navigate to Help >> Find Examples.
In the Example Finder under the 'Browse' tab go to:
Analysis, Signal Processing and Mathematics >> Signal Processing >> Edge Detection with 2D Convolution.vi
Robert S.
Applications Engineer
National Instruments
Attachments:
Edge Detection with 2D Convolution.vi 238 KB -
Hi guys
I am using the button hot spot method to create a small interactive ‘tag’ that contains the copyright information for the picture of lightening in my app design. The tag is a MSO, made up of two states. State 1 is the icon that you tap to trigger state 2 which is a textbox containing the copyright information. When the user taps the textbox, the MSO goes back to state 1. Therefore, the icon in state 1 is a button embedded in the state (which triggers state 2) and the textbox in state 2 is also a button embedded in the state (to trigger state 1).
Below are two screenshots of the app from my iPad and two close-up views of the MSO. You will be able to see the problem I am encountering with the button hot spot method (see bottom left hand corner of lightening image). Ever since I updated Adobe Content Viewer and DPS Desktop Tools CS6, the MSO (explained above) has a ‘double’ appearance. Both the icon (state one) and the textbox (state 2) are not viewing correctly. This MSO worked perfectly before the most recent updates to DPS and Adobe Content Viewer.
Are there any known issues with buttons embedded in MSOs and the button hot spot method, since the above mentioned updates? Or have I made a mistake when creating the MSO?
Your help is much appreciated!There are issues, if you use "Effects" together with MSO contents that "expand" the geometric bounds of the MSO (e.g. drop shadow).
The contents would shift slightly depending of the size of the effect. This is a known issue. Not resolved yet.
See:
http://forums.adobe.com/thread/1047429?tstart=150
Uwe -
How can I use my iPhone'hot spot to send email from my computer ?
Hi,
My land line is dead ... so no phone nor internet at home. But I can use my iPhone'hot spot to get on the web from my iMac. Great ... it works !
Oups ! I cannot send email from my computer using my iPhone's hot spot with Mail.
How do I do that ?
Regards.
Robert LespéranceHi iCare,
Thanks for helping ... All that configuration is already done. I am able to surf the web from my computer using my iPhone's hotspot.
When I want to send an email from my computer, I get a message asking me to select the the SMTP server. Then I select my usual ISP server, but the message comes back telling me it does not work.
Is there any other configuration to do ? -
How do I use my iPhone's hot spot to send email with Mail ?
Hi,
My land line is dead ... so no phone nor internet at home. But I can use my iPhone'hot spot to get on the web from my iMac. Great ... it works !
Oups ! I cannot send email from my computer using my iPhone's hot spot with Mail.
How do I do that ?
Regards.
Robert LespéranceHi Templeton Peck,
Thanks for droping in my thread ...
Doesn't the fact that I can surf the web with my iPhone's hot spot and that I cannot use Mail normally has I normally do give you a clue what the problem could be ?
What other information can I give you other than normally I can surf and send email with my regular ISP. Now that my ISP is dead I am using my iPhone's hotspot to surf the web awaiting that my ISP's connoection returns. Surfing is OK but I cannot send emails with through Mail.
When I want to send an email from my computer, I get a message asking me to select the the SMTP server. Then I select my usual ISP server, but the message comes back telling me it does not work.
Is there any other configuration to do ?
Maybe you are looking for
-
Change WBS element from Sales order
Hi... I have created one sales order with WBS element assignment then I have created billing document and released to accountingu2026. Accounting and controlling documents are fineu2026 After creation of accounting document system is allowing to chan
-
Hi All, I have one report with Line Bar combo Chart. In Chart X axis Name Y axis Values. I have 100 names in X axis. I want to break up 10 Name then next 10 Names like. How will do this. Thanks
-
Performance and HA for HttpClusterServlet
Hi, I didn't see much information in the documentation about the HttpClusterServlet: - can it be (easily) set up in a HA configuration (to avoid it being a SPOF)? - how does it perform? - is it possib
-
Search Indexing Program failed. java.lang.ExceptionInInitializerError
I have BusinessObjects Edge SP3 installation. Got error with Search Indexing Program. The error says: "The program failed to run and supplied the following information: java.lang.ExceptionInInitializerError". Some points I would like to get clearifie
-
Calendar on Macbook Pro won't synch with iCloud
Calendar on my Macbook Pro won't synch with the Calendar on iCloud. I tried a number of times to delete Calendar from iCloud in System Preferences then restart the laptop. I also switched the 'enable' function on and off in Calendar Preferences. I re