Class: HPDFExtGState
- Inherits:
-
Object
- Object
- HPDFExtGState
- Defined in:
- ext/hpdf.c
Instance Method Summary collapse
Instance Method Details
#set_alpha_fill ⇒ Object
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 |
# File 'ext/hpdf.c', line 1558
static VALUE
hpdf_ext_gstate_set_alpha_fill (VALUE obj, VALUE value)
{
HPDF_ExtGState gstate;
HPDF_STATUS ret;
HPDF_REAL f;
f = NUM2DBL(value);
Data_Get_Struct(obj, HPDF_Dict_Rec, gstate);
HPDF_PTRACE(("hpdf_ext_gstate_set_alpha_fill page=%p\n", gstate));
ret = HPDF_ExtGState_SetAlphaFill(gstate, f);
return INT2NUM(ret);
}
|
#set_alpha_stroke ⇒ Object
1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 |
# File 'ext/hpdf.c', line 1540
static VALUE
hpdf_ext_gstate_set_alpha_stroke (VALUE obj, VALUE value)
{
HPDF_ExtGState gstate;
HPDF_STATUS ret;
HPDF_REAL f;
f = NUM2DBL(value);
Data_Get_Struct(obj, HPDF_Dict_Rec, gstate);
HPDF_PTRACE(("hpdf_ext_gstate_set_alpha_stroke page=%p\n", gstate));
ret = HPDF_ExtGState_SetAlphaStroke(gstate, f);
return INT2NUM(ret);
}
|
#set_blend_mode ⇒ Object
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 |
# File 'ext/hpdf.c', line 1576
static VALUE
hpdf_ext_gstate_set_blend_mode (VALUE obj, VALUE mode)
{
HPDF_ExtGState gstate;
HPDF_STATUS ret;
HPDF_INT i;
i = NUM2INT(mode);
Data_Get_Struct(obj, HPDF_Dict_Rec, gstate);
HPDF_PTRACE(("hpdf_ext_gstate_set_blend_mode page=%p\n", gstate));
ret = HPDF_ExtGState_SetBlendMode(gstate, i);
return INT2NUM(ret);
}
|