Re: XForms: Using flimage_add_text

From: Steve Lamont (
Date: Fri Feb 16 2001 - 17:50:42 EST

  • Next message: Luis Balona: "XForms: flimage expose is slow"

    # To subscribers of the xforms list from Steve Lamont <> :

    > After reading the friendly manual, I have some specific questions about
    > flimage_add_text:
    > arg #3, len is the length of the string?

    Yes, as per the manual, p. 247 (my copy of the manual is Dated Jan 2000).

    > what exactly do args 6&7 (tcolor & bcolor) represent wrt "tran"? What does
    > "tran" represent?

    `tran' is a boolean flag. If non-zero, it means that the text is
    written "transparently," that is, without a background. Again, this
    is in the manual on page 247. `bcolor' is ignored if `tran' is true
    (non-zero). `tcolor' is the color of the text.

    > tx & ty are pixels from the origin? The reason I'm asking is that they're
    > declared double.

    This is because there's a possible scale factor applied to the `tx'
    and `ty' values.

    > Should the saved image contain the annotation? Am I barking up
    > the wrong tree here?

    No and yes, respectively. At least, sort of.

    The image annotation is not written to the image until it is rendered
    to a Window or Pixmap. Refer to the section entitled "Pixelizing the
    Annotation" for details.

    To unsubscribe, send the message "unsubscribe" to or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Fri Feb 16 2001 - 13:29:07 EST