I try to retrieve the values of the red, green and blue properties of a Color class but that leads to a hard crash. I’m probably wrong somewhere but where ? In the same plugin retrieving properties value of Rect and other classes works fine. My skills are a bit limited but it seems that the Color class reference passed to RGBColorSetter is wrong
{"", "RGBColor", "Color", REALconsoleSafe, (REALproc)RGBColorGetter, (REALproc)RGBColorSetter},
static void RGBColorSetter(REALobject instance, long param, REALobject rgb)
{
pRGBColor color;
RBColor value;
ClassData(PagePDF_Definition, instance, PagePDF_Data, me);
if (!REALGetPropValueColor(rgb, "Red", &value))
return;
.........
.........
.........
}
Var c1 As Color = Color.Brown
shape.RGBColor = c