Re: XForms: Using flimage_add_text

From: Steve Lamont (spl@ncmir.ucsd.edu)
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 <spl@ncmir.ucsd.edu> :

    > 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.

                                                            spl
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



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