X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=a86943d2f27b63464998d41607a63f3cf746b3dd;hb=f72efb3e0b08321fe70a478bf939c312ed7564ce;hp=03b6ef2bdd5bb0c9eee64f9e43a709901b8a374b;hpb=c011b1c37df2a64a1f8e454c23bb5b7e9854ab67;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 03b6ef2..a86943d 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -460,7 +460,6 @@ void swf_Shape2Free(SHAPE2 * s); void swf_DumpShape(SHAPE2*shape2); void swf_ParseDefineShape(TAG*tag, SHAPE2*shape); -void swf_Shape2ToShape(SHAPE2*shape2, SHAPE*shape); void swf_SetShape2(TAG*tag, SHAPE2*shape2); void swf_RecodeShapeData(U8*data, int bitlen, int in_bits_fill, int in_bits_line, @@ -755,6 +754,9 @@ U8 swf_isPseudoDefiningTag(TAG * t); U8 swf_isAllowedSpriteTag(TAG * t); U8 swf_isImageTag(TAG*tag); U8 swf_isShapeTag(TAG*tag); +U8 swf_isTextTag(TAG*tag); +U8 swf_isFontTag(TAG*tag); +U8 swf_isPlaceTag(TAG*tag); U16 swf_GetDefineID(TAG * t); SRECT swf_GetDefineBBox(TAG * t); @@ -774,6 +776,8 @@ void swf_RelocateDepth(SWF*swf, char*bitmap); // bitmap is 65536 bytes, bitmap[d TAG* swf_Concatenate (TAG*list1,TAG*list2); // warning: both list1 and list2 are invalid after this call. +RGBA swf_GetSWFBackgroundColor(SWF*swf); + // swfcgi.c void swf_uncgi(); // same behaviour as Steven Grimm's uncgi-library @@ -974,11 +978,12 @@ typedef struct RENDERBUF void*internal; } RENDERBUF; -void swf_Render_Init(RENDERBUF*buf, int posx, int posy, int width, int height, char antialize, int scale); +void swf_Render_Init(RENDERBUF*buf, int posx, int posy, int width, int height, int antialize, int multiply); void swf_Render_SetBackground(RENDERBUF*buf, RGBA*img, int width, int height); void swf_Render_SetBackgroundColor(RENDERBUF*buf, RGBA color); RGBA* swf_Render(RENDERBUF*dest); void swf_RenderShape(RENDERBUF*dest, SHAPE2*shape, MATRIX*m, CXFORM*c, U16 depth,U16 clipdepth); +void swf_RenderSWF(RENDERBUF*buf, SWF*swf); void swf_Render_AddImage(RENDERBUF*buf, U16 id, RGBA*img, int width, int height); void swf_Render_ClearCanvas(RENDERBUF*dest); void swf_Render_Delete(RENDERBUF*dest);