I am creating a picture to display on my splash screen using Photoshop. My problem is getting the background set to the same shade of gray as the VB Splashscreen. I can get close but the background is still slightly wrong. Any help appreciated.
Hi 1 way is to use nameofform.point to return the colour of a particular pixel on the background.
i.e the following code will give you a hexadecimal reprensentation of the pixel colour in the top left corner of the form the code is in.
***code***
Dim pixelcolour As Long
Dim PixelRGB As String
pixelcolour = (Me.Point(0, 0)) ' Get the colour of the pixel in the top left hand corner of the form
PixelRGB = Hex$(pixelcolour) ' Get it in to a HEX format BlueGreenRed
******
The value in PixelRGB will be encode as BBGGRR so if the value of PixelRGB is C8D0D4
Then the blue is C8 (200), Green is D0 (208) and Red is D4 (212).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.