Skip to content

Instantly share code, notes, and snippets.

@enebo
Created March 12, 2009 17:16
Show Gist options
  • Save enebo/78179 to your computer and use it in GitHub Desktop.
Save enebo/78179 to your computer and use it in GitHub Desktop.
/**
* Wrapper for calling the ActiveX-Method with input-parameter(s).
* @param nX an input-parameter of type int
* @param nY an input-parameter of type int
* @return the result is of type int
*/
public int pixelGetColor(int nX, int nY) {
return Dispatch.call(this, "PixelGetColor", new Variant(nX), new Variant(nY)).changeType(Variant.VariantInt).getInt();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment