⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftimage.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 5 页
字号:
  /*************************************************************************/  /*                                                                       */  /* <FuncType>                                                            */  /*    FT_SpanFunc                                                        */  /*                                                                       */  /* <Description>                                                         */  /*    A function used as a call-back by the anti-aliased renderer in     */  /*    order to let client applications draw themselves the gray pixel    */  /*    spans on each scan line.                                           */  /*                                                                       */  /* <Input>                                                               */  /*    y     :: The scanline's y-coordinate.                              */  /*                                                                       */  /*    count :: The number of spans to draw on this scanline.             */  /*                                                                       */  /*    spans :: A table of `count' spans to draw on the scanline.         */  /*                                                                       */  /*    user  :: User-supplied data that is passed to the callback.        */  /*                                                                       */  /* <Note>                                                                */  /*    This callback allows client applications to directly render the    */  /*    gray spans of the anti-aliased bitmap to any kind of surfaces.     */  /*                                                                       */  /*    This can be used to write anti-aliased outlines directly to a      */  /*    given background bitmap, and even perform translucency.            */  /*                                                                       */  /*    Note that the `count' field cannot be greater than a fixed value   */  /*    defined by the `FT_MAX_GRAY_SPANS' configuration macro in          */  /*    `ftoption.h'.  By default, this value is set to 32, which means    */  /*    that if there are more than 32 spans on a given scanline, the      */  /*    callback is called several times with the same `y' parameter in    */  /*    order to draw all callbacks.                                       */  /*                                                                       */  /*    Otherwise, the callback is only called once per scan-line, and     */  /*    only for those scanlines that do have `gray' pixels on them.       */  /*                                                                       */  typedef void  (*FT_SpanFunc)( int             y,                  int             count,                  const FT_Span*  spans,                  void*           user );#define FT_Raster_Span_Func   FT_SpanFunc  /*************************************************************************/  /*                                                                       */  /* <FuncType>                                                            */  /*    FT_Raster_BitTest_Func                                             */  /*                                                                       */  /* <Description>                                                         */  /*    THIS TYPE IS DEPRECATED.  DO NOT USE IT.                           */  /*                                                                       */  /*    A function used as a call-back by the monochrome scan-converter    */  /*    to test whether a given target pixel is already set to the drawing */  /*    `color'.  These tests are crucial to implement drop-out control    */  /*    per-se the TrueType spec.                                          */  /*                                                                       */  /* <Input>                                                               */  /*    y     :: The pixel's y-coordinate.                                 */  /*                                                                       */  /*    x     :: The pixel's x-coordinate.                                 */  /*                                                                       */  /*    user  :: User-supplied data that is passed to the callback.        */  /*                                                                       */  /* <Return>                                                              */  /*   1 if the pixel is `set', 0 otherwise.                               */  /*                                                                       */  typedef int  (*FT_Raster_BitTest_Func)( int    y,                             int    x,                             void*  user );  /*************************************************************************/  /*                                                                       */  /* <FuncType>                                                            */  /*    FT_Raster_BitSet_Func                                              */  /*                                                                       */  /* <Description>                                                         */  /*    THIS TYPE IS DEPRECATED.  DO NOT USE IT.                           */  /*                                                                       */  /*    A function used as a call-back by the monochrome scan-converter    */  /*    to set an individual target pixel.  This is crucial to implement   */  /*    drop-out control according to the TrueType specification.          */  /*                                                                       */  /* <Input>                                                               */  /*    y     :: The pixel's y-coordinate.                                 */  /*                                                                       */  /*    x     :: The pixel's x-coordinate.                                 */  /*                                                                       */  /*    user  :: User-supplied data that is passed to the callback.        */  /*                                                                       */  /* <Return>                                                              */  /*    1 if the pixel is `set', 0 otherwise.                              */  /*                                                                       */  typedef void  (*FT_Raster_BitSet_Func)( int    y,                            int    x,                            void*  user );  /*************************************************************************/  /*                                                                       */  /* <Enum>                                                                */  /*    FT_RASTER_FLAG_XXX                                                 */  /*                                                                       */  /* <Description>                                                         */  /*    A list of bit flag constants as used in the `flags' field of a     */  /*    @FT_Raster_Params structure.                                       */  /*                                                                       */  /* <Values>                                                              */  /*    FT_RASTER_FLAG_DEFAULT :: This value is 0.                         */  /*                                                                       */  /*    FT_RASTER_FLAG_AA      :: This flag is set to indicate that an     */  /*                              anti-aliased glyph image should be       */  /*                              generated.  Otherwise, it will be        */  /*                              monochrome (1-bit).                      */  /*                                                                       */  /*    FT_RASTER_FLAG_DIRECT  :: This flag is set to indicate direct      */  /*                              rendering.  In this mode, client         */  /*                              applications must provide their own span */  /*                              callback.  This lets them directly       */  /*                              draw or compose over an existing bitmap. */  /*                              If this bit is not set, the target       */  /*                              pixmap's buffer _must_ be zeroed before  */  /*                              rendering.                               */  /*                                                                       */  /*                              Note that for now, direct rendering is   */  /*                              only possible with anti-aliased glyphs.  */  /*                                                                       */  /*    FT_RASTER_FLAG_CLIP    :: This flag is only used in direct         */  /*                              rendering mode.  If set, the output will */  /*                              be clipped to a box specified in the     */  /*                              `clip_box' field of the                  */  /*                              @FT_Raster_Params structure.             */  /*                                                                       */  /*                              Note that by default, the glyph bitmap   */  /*                              is clipped to the target pixmap, except  */  /*                              in direct rendering mode where all spans */  /*                              are generated if no clipping box is set. */  /*                                                                       */#define FT_RASTER_FLAG_DEFAULT  0x0#define FT_RASTER_FLAG_AA       0x1#define FT_RASTER_FLAG_DIRECT   0x2#define FT_RASTER_FLAG_CLIP     0x4  /* deprecated */#define ft_raster_flag_default  FT_RASTER_FLAG_DEFAULT#define ft_raster_flag_aa       FT_RASTER_FLAG_AA#define ft_raster_flag_direct   FT_RASTER_FLAG_DIRECT#define ft_raster_flag_clip     FT_RASTER_FLAG_CLIP  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FT_Raster_Params                                                   */  /*                                                                       */  /* <Description>                                                         */  /*    A structure to hold the arguments used by a raster's render        */  /*    function.                                                          */  /*                                                                       */  /* <Fields>                                                              */  /*    target      :: The target bitmap.                                  */  /*                                                                       */  /*    source      :: A pointer to the source glyph image (e.g., an       */  /*                   @FT_Outline).                                       */  /*                                                                       */  /*    flags       :: The rendering flags.                                */  /*                                                                       */  /*    gray_spans  :: The gray span drawing callback.                     */  /*                                                                       */  /*    black_spans :: The black span drawing callback.                    */  /*                                                                       */  /*    bit_test    :: The bit test callback.  UNIMPLEMENTED!              */  /*                                                                       */  /*    bit_set     :: The bit set callback.  UNIMPLEMENTED!               */  /*                                                                       */  /*    user        :: User-supplied data that is passed to each drawing   */  /*                   callback.                                           */  /*                                                                       */  /*    clip_box    :: An optional clipping box.  It is only used in       */  /*                   direct rendering mode.  Note that coordinates here  */  /*                   should be expressed in _integer_ pixels (and not in */  /*                   26.6 fixed-point units).                            */  /*                                                                       */  /* <Note>                                                                */  /*    An anti-aliased glyph bitmap is drawn if the @FT_RASTER_FLAG_AA    */  /*    bit flag is set in the `flags' field, otherwise a monochrome       */  /*    bitmap is generated.                                               */  /*                                                                       */  /*    If the @FT_RASTER_FLAG_DIRECT bit flag is set in `flags', the      */  /*    raster will call the `gray_spans' callback to draw gray pixel      */  /*    spans, in the case of an aa glyph bitmap, it will call             */  /*    `black_spans', and `bit_test' and `bit_set' in the case of a       */  /*    monochrome bitmap.  This allows direct composition over a          */  /*    pre-existing bitmap through user-provided callbacks to perform the */  /*    span drawing/composition.                                          */  /*                                                                       */  /*    Note that the `bit_test' and `bit_set' callbacks are required when */  /*    rendering a monochrome bitmap, as they are crucial to implement    */  /*    correct drop-out control as defined in the TrueType specification. */  /*                                                                       */  typedef struct  FT_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -