I was trying to make a material legend with GDL and I have come across some errors in the manual regarding the
DEFINE IMAGE_FILL definition. Showed below is the form in which is written in the GDL manual, but it should be the horizontal size first and then the vertical one. Moreover I was having trouble with the angle which didn't seem to work properly; I tested the request in the Master script but the request seemed to be ok, it was returning the correct angle. The problem was with the define image fill parameter which required the angle in radians not in degrees, so i wrote the formula: angle = - angle * PI / 180 which is working fine.
DEFINE IMAGE_FILL name imageName [[,] FILLTYPES_MASK fillTypes]
part1, part2, part3, part4, part5, part6, part7, part8,
height, width, mask, angle