Picasso API  2.8
Typedefs | Functions
psx_svg.h File Reference
#include "picasso.h"
#include "picasso_ext.h"
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct _psx_svg psx_svg
 An opaque type represents an svg document. More...
 
typedef struct _psx_svg_render psx_svg_render
 An opaque type represents an svg render object. More...
 

Functions

PEXPORT psx_result PICAPI psx_svg_init (void)
 Initialze the library and load resources. More...
 
PEXPORT void PICAPI psx_svg_shutdown (void)
 Release resources and shutdoen. More...
 
PEXPORT psx_svg *PICAPI psx_svg_load (const char *file_name, psx_result *err_code)
 Create a new psx_svg object and load from file. More...
 
PEXPORT psx_svg *PICAPI psx_svg_load_from_memory (const ps_byte *data, size_t length, psx_result *err_code)
 Create a new psx_svg object and load data from memory. More...
 
PEXPORT void PICAPI psx_svg_destroy (psx_svg *doc)
 Destroy the psx_svg object and release resources. More...
 
PEXPORT void PICAPI psx_svg_render_destroy (psx_svg_render *render)
 Destroy the psx_svg_render object and release resources. More...
 
PEXPORT psx_result PICAPI psx_svg_render_draw (ps_context *ctx, const psx_svg_render *render)
 Draws an psx_svg_render object into the given context. More...
 

Detailed Description

Author
Zhang Ji Peng oneco.nosp@m.olx@.nosp@m.gmail.nosp@m..com
Date
2025/5/12

This file includes all interfaces of picasso's SVG extension function.

   Copyright (C) 2008 ~ 2025  Zhang Ji Peng

   All rights reserved.

   Picasso is a vector graphic library.

Definition in file psx_svg.h.