Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pixels values

is there a way to can get the color of a pixel in a picture?

in the form of

ActiveSheet.Shapes(xxxxxx).??????????????


---

Is there a way to compare to pictures, only interested in whether it i
a 100% match or no

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pixels values

You will not get this directly from normal VBA - or even Visual Basic, I
guess. However you may be successful using API functions via VBA.

Have a look at this for starters. A very useful site. :-
http://www.mentalis.org/apilist/GetPixel.shtml

Here is some code which tells you what the current mouse position is
(of course it depends on where the button is to run it.<<grin). This
may save you having to check a few million pixels one by one.

'-----------------------------
'- Get mouse co-ordinates
Type POINTAPI
x As Long
y As Long
End Type
Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As
Long
Dim z As POINTAPI
'------------------------------
Sub Mouse_XY()
GetCursorPos z
MsgBox ("Mouse X : " & z.x & vbCr & "Mouse Y : " & z.y)
End Sub
'------------------------------------------------------
'


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pixels Tanya Excel Discussion (Misc queries) 1 January 15th 09 06:27 AM
pixels Enthusiastic new user New Users to Excel 2 August 13th 07 12:02 AM
Pixels are the new pies SwampYankee Charts and Charting in Excel 4 August 2nd 07 05:56 PM
Size of column in pixels RN Excel Discussion (Misc queries) 0 August 22nd 06 02:19 PM
some columns 30 characters 155 pixels others 310 pixels why vurden Excel Discussion (Misc queries) 2 April 26th 05 03:30 AM


All times are GMT +1. The time now is 11:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"