Skip to main content
Participating Frequently
March 20, 2013
Answered

sethalftone

  • March 20, 2013
  • 2 replies
  • 1847 views

I have issue with sethalftone in the following script can any one let me know wats the wrong with the script !!!!

%!PS

/mycolorhalftone 6 dict def

mycolorhalftone begin

/Cyan <<

/HalftoneType 1

/Frequency 150

/Angle 15

/SpotFunction { dup mul exch dup mul add 1 exch sub }

>> def

/Magenta <<

/HalftoneType 1

/Frequency 150

/Angle 105

/SpotFunction { dup mul exch dup mul add 1 exch sub }

>> def

/Yellow <<

/HalftoneType 1

/Frequency 150

/Angle 90

/SpotFunction { dup mul exch dup mul add 1 exch sub }

>> def

/Black <<

/HalftoneType 1

/Frequency 150

/Angle 45

/SpotFunction { dup mul exch dup mul add 1 exch sub }

>> def

/Default <<

/HalftoneType 1

/Frequency 150

/Angle 45

/SpotFunction { dup mul exch dup mul add 1 exch sub }

>> def

end

mycolorhalftone sethalftone

This topic has been closed for replies.
Correct answer abeddie

It is in the color dicts e.g. Cyan but missing from the mycolorhalftone dict e.g.

%!PS

/mycolorhalftone 6 dict def

mycolorhalftone begin

/HalftoneType 5 def % NEW

/Cyan <<

<snip>

2 replies

abeddieCorrect answer
Participating Frequently
March 22, 2013

It is in the color dicts e.g. Cyan but missing from the mycolorhalftone dict e.g.

%!PS

/mycolorhalftone 6 dict def

mycolorhalftone begin

/HalftoneType 5 def % NEW

/Cyan <<

<snip>

Inspiring
May 15, 2013

s_sudhagar

What is exactely are you trying to acheive?>

sethalftone is device dependent and it may not work !

for EFI for example it is not work - they don't allow you to control these parameters  /Frequency 150  ,/Angle 90  etc

Dr. Adam


Participating Frequently
June 4, 2013

Hi Adam,

i am working in printer development domain so i can able to controle these parameters...   Thanks

Legend
March 21, 2013

PSAlter shows the following error:

Error name: undefined; Offending command: --sethalftone--

Error in halftone dictionary

In halftone dictionaries, the key /HalftoneType is compulsory, but it is missing here.