6 Replies - 4960 Views - Last Post: 08 June 2011 - 07:53 PM Rate Topic: -----

#1 jernelsa  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 56
  • Joined: 29-May 11

Get pixel color

Posted 08 June 2011 - 02:51 AM

Is there a way to get the pixel color of an image inside MS word?? I already get the sizes of the images inside of a ms word document. now the only problem is how to get the pixel color.. thanks!
Is This A Good Question/Topic? 0
  • +

Replies To: Get pixel color

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 303
  • View blog
  • Posts: 1,796
  • Joined: 26-March 09

Re: Get pixel color

Posted 08 June 2011 - 05:11 AM

Try doing a search on the GetPixel API, which will allow you to get the pixel colour. It should be callable from VBA.

This post has been edited by maj3091: 08 June 2011 - 05:12 AM

Was This Post Helpful? 0
  • +
  • -

#3 jernelsa  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 56
  • Joined: 29-May 11

Re: Get pixel color

Posted 08 June 2011 - 08:41 AM

Will this be applicable in ms word? because I want to check the pixel color INSIDE the ms word document. I really need this badly. tnx!
Was This Post Helpful? 0
  • +
  • -

#4 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 303
  • View blog
  • Posts: 1,796
  • Joined: 26-March 09

Re: Get pixel color

Posted 08 June 2011 - 09:13 AM

If you're writing what you need to do in VBA within MSWord, then I think it may be possible. The only way to find out is to try it.
Was This Post Helpful? 0
  • +
  • -

#5 jernelsa  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 56
  • Joined: 29-May 11

Re: Get pixel color

Posted 08 June 2011 - 09:22 AM

Ok tnx for that, hmm what about this is it possible to select the image inside the ms word document and put it in image box or picture box??

This post has been edited by jernelsa: 08 June 2011 - 09:28 AM

Was This Post Helpful? 0
  • +
  • -

#6 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: Get pixel color

Posted 08 June 2011 - 12:12 PM

Were you able to solve the first problem? If so, please publish your result so everyone can benefit. As for your second question, I would say that yes, it is quite possible. I would also say that it is unrelated to the first topic, so please post it in a new thread.
Was This Post Helpful? 0
  • +
  • -

#7 jernelsa  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 56
  • Joined: 29-May 11

Re: Get pixel color

Posted 08 June 2011 - 07:53 PM

Ok sorry for that, my true plan is to get the image in ms word and put it in imagebox and then get the pixel color. well better post my other question tnx for that.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1