Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 04 MAR 1998 10:10:18AM Ron Hollar wrote:

I get a nice purple square on my HP Deskjet 870ce when it is set as my default printer and I run the following code:

hwnd=Get_Property( @window, 'HANDLE')

s=Print_Init( 0,'TEST BY RONH',hwnd)

x=PrintSetPen( 0,25,0)

x=PrintRect( 2,3,3,4)

s=Print_End()

Any ideas why?

If I add commands to print text, they are printed in black. Parameter 3 in PrintSetPen is documented as color, 0 should be black.


At 05 MAR 1998 10:04AM Tracy Graves wrote:

Hi Ron-

Does the color of the rectangle change if you change the color parameter of SetPen to something else?? I don't have the option of testing that particular thing..

Tracy


At 05 MAR 1998 10:07AM Cameron Revelation wrote:

Ron,

Any ideas why?

No … it may be the printer driver's interpretation of the brush/pen combination.

Cameron Purdy

info@revelation.com


At 05 MAR 1998 10:33AM Ron Hollar wrote:

Tracy,

  I am assuming that the color property is defined as 

color=red + (green * 256) + (blue * 65536)

Using][color=0 or 255*65536 gives purple

Using][color=255*256 or 255+(255*256)+(255*65536) gives a bluish purple

Using][color=255, 256 or 65536 gives a reddish purple.

I'm beginning to blush purple.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/9a7abf5aa358d36e852565bd0053573f.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1