Skip to Content
0
Former Member
Mar 21, 2008 at 08:28 PM

PDF bmp shows as photographic negative

9 Views

Hi,

I hope someone can shed some light on this topic for me. I have defined a variable, GV_SIGNATURE, as type XSTRING in my interface.

Then I fill the value of GV_SIGNATURE with this code:

  CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
      p_object       = 'GRAPHICS'
      p_name         = lv_signature_object
      p_id           = 'BMAP'
      p_btype        = 'BMON'
    RECEIVING
      p_bmp          = gv_signature
    EXCEPTIONS
      not_found      = 1
      internal_error = 2
      OTHERS         = 3.

  IF sy-subrc <> 0.
    CLEAR: gv_signature, gv_signature_flag.
  ENDIF.

It returns 0, so far so good.

In my context I have a graphic element, graphic type is graphic content and the field is GV_SIGNATURE. MIME type is 'image/bmp'.

In my layout I put it on the first master page. In the Object palette the type is 'image field', no caption, no url, the embed image data box is NOT checked, and sizing is 'Scale Image Proportionally'. The presence is 'Visible' and the locale is 'Default Locale'.

Now when I print the form, the signature prints as white letters on a black background, which is the photographic negative of how the signature actually looks.

Am I missing a step? Using it incorrectly in the layout? Or maybe made an error in loading the signature into the MIME repository.