亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? linestyle.c

?? Ming is a library for generating Macromedia Flash files (.swf), written in C, and includes useful ut
?? C
字號:
/*    Ming, an SWF output library    Copyright (C) 2002  Opaque Industries - http://www.opaque.net/    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Lesser General Public    License as published by the Free Software Foundation; either    version 2.1 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    Lesser General Public License for more details.    You should have received a copy of the GNU Lesser General Public    License along with this library; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//* $Id: linestyle.c,v 1.15 2008/02/14 13:57:39 krechert Exp $ */#include <stdlib.h>#include "libming.h"#include "linestyle.h"#include "fillstyle.h"#include "error.h"#define SWF_LINESTYLE_FLAG_FILL		(1<<11)struct SWFLineStyle_s{	unsigned short width;	byte r;	byte g;	byte b;	byte a;	/* LINESTYLE2 extensions */	// 16 bit flags	int flags;	float miterLimit;	SWFFillStyle fill;};/*  * sets simple linestyle  * width is set in TWIPS */SWFLineStyle newSWFLineStyle(unsigned short width,                             byte r, byte g, byte b, byte a){	SWFLineStyle line = (SWFLineStyle)malloc(sizeof(struct SWFLineStyle_s));	line->width = width;	line->r = r;	line->g = g;	line->b = b;	line->a = a;	line->flags = 0;	return line;}/* * create Linestyle2 introduce with SWF 8. * Linestyle2 extends Linestyle1 with some extra flags: * * Line cap style: select one of the following flags (default is round cap style) * SWF_LINESTYLE_CAP_ROUND  * SWF_LINESTYLE_CAP_NONE * SWF_LINESTYLE_CAP_SQUARE  * * Line join style: select one of the following flags (default is round join style) * SWF_LINESTYLE_JOIN_ROUND * SWF_LINESTYLE_JOIN_BEVEL  * SWF_LINESTYLE_JOIN_MITER   * * Scaling flags: disable horizontal / vertical scaling * SWF_LINESTYLE_FLAG_NOHSCALE * SWF_LINESTYLE_FLAG_NOVSCALE  * * Enable pixel hinting to correct blurry vertical / horizontal lines * -> all anchors will be aligned to full pixels * SWF_LINESTYLE_FLAG_HINTING   * * Disable stroke closure: if no-close flag is set caps will be applied  * instead of joins * SWF_LINESTYLE_FLAG_NOCLOSE * * End-cap style: default round * SWF_LINESTYLE_FLAG_ENDCAP_ROUND * SWF_LINESTYLE_FLAG_ENDCAP_NONE * SWF_LINESTYLE_FLAG_ENDCAP_SQUARE * * If join style is SWF_LINESTYLE_JOIN_MITER a miter limit factor  * must be set. Miter max length is then calculated as: * max miter len = miter limit * width. * If join style is not miter, this value will be ignored. */SWFLineStyle newSWFLineStyle2(unsigned short width, byte r, byte g, byte b, byte a,                               int flags, float miterLimit){	SWFLineStyle line = (SWFLineStyle)malloc(sizeof(struct SWFLineStyle_s));	line->width = width;	line->r = r;	line->g = g;	line->b = b;	line->a = a;	line->flags = 0 | flags;	line->miterLimit = miterLimit;	line->fill = NULL;		return line;}/* * create Linestyle2 introduce with SWF 8. *  * Instead of providing a fill color, a FillStyle can be applied * to a line. *  * Linestyle2 also extends Linestyle1 with some extra flags: * * Line cap style: select one of the following flags (default is round cap style) * SWF_LINESTYLE_CAP_ROUND  * SWF_LINESTYLE_CAP_NONE * SWF_LINESTYLE_CAP_SQUARE  * * Line join style: select one of the following flags (default is round join style) * SWF_LINESTYLE_JOIN_ROUND * SWF_LINESTYLE_JOIN_BEVEL  * SWF_LINESTYLE_JOIN_MITER   * * Scaling flags: disable horizontal / vertical scaling * SWF_LINESTYLE_FLAG_NOHSCALE * SWF_LINESTYLE_FLAG_NOVSCALE  * * Enable pixel hinting to correct blurry vertical / horizontal lines * -> all anchors will be aligned to full pixels * SWF_LINESTYLE_FLAG_HINTING   * * Disable stroke closure: if no-close flag is set caps will be applied  * instead of joins * SWF_LINESTYLE_FLAG_NOCLOSE * * End-cap style: default round * SWF_LINESTYLE_FLAG_ENDCAP_ROUND * SWF_LINESTYLE_FLAG_ENDCAP_NONE * SWF_LINESTYLE_FLAG_ENDCAP_SQUARE * * If join style is SWF_LINESTYLE_JOIN_MITER a miter limit factor  * must be set. Miter max length is then calculated as: * max miter len = miter limit * width. * If join style is not miter, this value will be ignored. */SWFLineStyle newSWFLineStyle2_filled(unsigned short width, SWFFillStyle fill,                                      int flags, float miterLimit){	SWFLineStyle line;	if(fill == NULL)		return NULL;	line = (SWFLineStyle)malloc(sizeof(struct SWFLineStyle_s));	line->width = width;	line->flags = SWF_LINESTYLE_FLAG_FILL | flags;	line->miterLimit = miterLimit;	line->fill = fill;	return 0;}byte SWFLineStyle_equals(SWFLineStyle line, unsigned short width,			 byte r, byte g, byte b, byte a, int flags){//	if(line->width == 0 && width == 0)//		return TRUE;	if(line->width == width &&		 line->r == r &&		 line->g == g &&		 line->b == b &&		 line->a == a &&                 line->flags == flags)	{		return TRUE;	}	return FALSE;}byte SWFLineStyle_equals2filled(SWFLineStyle line, unsigned short width,                                SWFFillStyle fill, int flags){	if(line->width == width &&           line->flags == flags &&            SWFFillStyle_equals(line->fill, fill))	{		return TRUE;	}	return FALSE;}                               unsigned short SWFLineStyle_getWidth(SWFLineStyle line){	return line->width;}static inline void writeLineStyle1(SWFOutput out, SWFLineStyle line, int shapeType){	SWFOutput_writeUInt16(out, line->width);	SWFOutput_writeUInt8(out, line->r);	SWFOutput_writeUInt8(out, line->g);	SWFOutput_writeUInt8(out, line->b);	if(shapeType == SWF_DEFINESHAPE3)		SWFOutput_writeUInt8(out, line->a);}static inline void writeLineStyle2(SWFOutput out, SWFLineStyle line, SWFBlocktype shapeType){	SWFOutput_writeUInt16(out, line->width);	SWFOutput_writeUInt8(out, (line->flags >> 8));	SWFOutput_writeUInt8(out, line->flags);	if(line->flags & SWF_LINESTYLE_JOIN_MITER)		SWFOutput_writeFixed8(out, line->miterLimit);	if(line->flags & SWF_LINESTYLE_FLAG_FILL)		SWFOutput_writeFillStyle(out, line->fill, shapeType, NULL);	else	{		SWFOutput_writeUInt8(out, line->r);		SWFOutput_writeUInt8(out, line->g);		SWFOutput_writeUInt8(out, line->b);		SWFOutput_writeUInt8(out, line->a);	}}void SWFOutput_writeLineStyles(SWFOutput out,                               SWFLineStyle *lines, int nLines,                               SWFBlocktype shapeType){	SWFLineStyle line;	int i;		if(nLines<255)		SWFOutput_writeUInt8(out, nLines);	else	{		SWFOutput_writeUInt8(out, 255);		SWFOutput_writeUInt16(out, nLines);	}		for(i=0; i<nLines; ++i)	{		line = lines[i];		if(shapeType == SWF_DEFINESHAPE4)			writeLineStyle2(out, line, shapeType);		else			writeLineStyle1(out, line, shapeType);	}}void SWFOutput_writeMorphLineStyles2(SWFOutput out,		SWFLineStyle *lines1, int nLines1,		SWFLineStyle *lines2, int nLines2){	SWFLineStyle line1, line2;	int i;	SWF_assert(nLines1 == nLines2);	if(nLines1<255)		SWFOutput_writeUInt8(out, nLines1);	else	{		SWFOutput_writeUInt8(out, 255);		SWFOutput_writeUInt16(out, nLines1);	}	for(i=0; i<nLines1; ++i)	{		line1 = lines1[i];		line2 = lines2[i];		SWFOutput_writeUInt16(out, line1->width);		SWFOutput_writeUInt16(out, line2->width);				if(line1->flags != line2->flags)			SWF_warnOnce("Morph: shapes _must_ us equal line flags\n");		SWFOutput_writeUInt8(out, (line1->flags >> 8));		SWFOutput_writeUInt8(out, line1->flags);		if(line1->flags & SWF_LINESTYLE_JOIN_MITER)			SWFOutput_writeFixed8(out, line1->miterLimit);		if(line1->flags & SWF_LINESTYLE_FLAG_FILL)			SWFOutput_writeMorphFillStyle(out, line1->fill, NULL, line2->fill, NULL);		else		{				SWFOutput_writeUInt8(out, line1->r);			SWFOutput_writeUInt8(out, line1->g);			SWFOutput_writeUInt8(out, line1->b);			SWFOutput_writeUInt8(out, line1->a);			SWFOutput_writeUInt8(out, line2->r);			SWFOutput_writeUInt8(out, line2->g);			SWFOutput_writeUInt8(out, line2->b);			SWFOutput_writeUInt8(out, line2->a);		}	}}void SWFOutput_writeMorphLineStyles(SWFOutput out,						SWFLineStyle *lines1, int nLines1,						SWFLineStyle *lines2, int nLines2){	SWFLineStyle line1, line2;	int i;	SWF_assert(nLines1 == nLines2);	if(nLines1<255)		SWFOutput_writeUInt8(out, nLines1);	else	{		SWFOutput_writeUInt8(out, 255);		SWFOutput_writeUInt16(out, nLines1);	}	for(i=0; i<nLines1; ++i)	{		line1 = lines1[i];		line2 = lines2[i];		SWFOutput_writeUInt16(out, line1->width);		SWFOutput_writeUInt16(out, line2->width);		SWFOutput_writeUInt8(out, line1->r);		SWFOutput_writeUInt8(out, line1->g);		SWFOutput_writeUInt8(out, line1->b);		SWFOutput_writeUInt8(out, line1->a);		SWFOutput_writeUInt8(out, line2->r);		SWFOutput_writeUInt8(out, line2->g);		SWFOutput_writeUInt8(out, line2->b);		SWFOutput_writeUInt8(out, line2->a);	}}/* * Local variables: * tab-width: 2 * c-basic-offset: 2 * End: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩午夜小视频| 一卡二卡欧美日韩| 亚洲丝袜精品丝袜在线| 午夜国产精品影院在线观看| 国产麻豆精品95视频| 欧美日韩卡一卡二| 国产精品欧美久久久久无广告| 亚洲国产另类av| av电影在线不卡| 国产亚洲成av人在线观看导航| 五月综合激情日本mⅴ| 91蜜桃网址入口| 欧美极品少妇xxxxⅹ高跟鞋| 美女任你摸久久| 国产午夜亚洲精品羞羞网站| 午夜av电影一区| 欧美中文字幕一区| **性色生活片久久毛片| 国产精品夜夜嗨| 2024国产精品视频| 奇米精品一区二区三区在线观看 | 综合久久国产九一剧情麻豆| 另类小说图片综合网| 欧美丝袜自拍制服另类| 亚洲免费观看高清| 国产一区二区久久| 欧美电影免费观看高清完整版在线 | 欧美亚洲综合一区| 亚洲乱码中文字幕| 一本久久精品一区二区| 国产精品久久午夜夜伦鲁鲁| 国产精品一二三四| 欧美激情综合五月色丁香小说| 久草中文综合在线| 日韩精品中文字幕在线一区| 午夜精品影院在线观看| 欧美日韩精品免费观看视频| 亚洲国产中文字幕在线视频综合 | 一区二区三区四区国产精品| 91丝袜呻吟高潮美腿白嫩在线观看| 亚洲国产精品黑人久久久| 国产成人在线免费| 国产欧美一区二区三区在线老狼 | 国产精品视频一二三区| 国产69精品久久久久777| 中文av一区二区| 91视频com| 日韩电影在线免费看| 日韩欧美国产小视频| 狠狠狠色丁香婷婷综合久久五月| 2017欧美狠狠色| 99久久亚洲一区二区三区青草| 亚洲精品福利视频网站| 欧美三级乱人伦电影| 日本视频在线一区| 久久久国产午夜精品| www.日韩av| 午夜久久久久久电影| 欧美变态口味重另类| 国产一区在线精品| 亚洲特黄一级片| 欧美一区二区三区爱爱| 国产成人av影院| 一区二区三区中文在线| 日韩天堂在线观看| 成人免费视频网站在线观看| 亚洲精品国产a| 久久久久久久久97黄色工厂| 一本一本大道香蕉久在线精品 | 91免费小视频| 青青国产91久久久久久| 国产亚洲一区二区三区| 欧洲人成人精品| 黄色成人免费在线| 一区二区三区在线免费观看| 日韩精品一区二区三区蜜臀| 91蝌蚪porny| 国产一区二区三区四| 亚洲小说春色综合另类电影| 久久久一区二区三区| 欧美色网一区二区| 成人福利视频网站| 蜜桃在线一区二区三区| 亚洲毛片av在线| 国产日韩v精品一区二区| 69堂成人精品免费视频| 91偷拍与自偷拍精品| 国产成人午夜精品影院观看视频 | 91精品国产综合久久精品性色| 成人三级在线视频| 激情综合网av| 性做久久久久久久免费看| 中文字幕一区免费在线观看| 欧美zozozo| 欧美一区二区三区视频免费播放| 99久久精品费精品国产一区二区| 国产伦精品一区二区三区在线观看| 亚洲综合图片区| 亚洲天堂网中文字| 日本一区二区三区在线观看| 日韩精品专区在线影院观看| 欧美精品视频www在线观看| 91视频在线观看| 成人av在线网| 成人午夜精品在线| 国产成人在线电影| 国产精品亚洲成人| 韩国v欧美v日本v亚洲v| 欧美a级一区二区| 五月激情综合网| 肉丝袜脚交视频一区二区| 亚洲自拍偷拍九九九| 亚洲欧美色一区| 亚洲免费观看高清完整版在线观看| 亚洲欧洲国产日本综合| 国产精品丝袜久久久久久app| 国产欧美视频一区二区三区| 久久久午夜电影| 久久久久久久久一| 国产精品人妖ts系列视频| 国产精品久久免费看| 中文字幕一区二区三区四区不卡 | 久久久久久久久久久电影| 久久日韩粉嫩一区二区三区| 久久久久亚洲蜜桃| 日本一区二区三区免费乱视频| 国产精品天美传媒| 亚洲免费在线看| 视频一区二区三区中文字幕| 日日夜夜精品免费视频| 秋霞午夜av一区二区三区| 精品久久99ma| 亚洲va在线va天堂| 国产精品麻豆欧美日韩ww| 欧美一级二级三级蜜桃| 欧美一区二区精美| 久久女同性恋中文字幕| 亚洲自拍偷拍欧美| 日本系列欧美系列| 国产欧美日韩综合精品一区二区| 亚洲v中文字幕| 色成年激情久久综合| 久久精品一区四区| 奇米一区二区三区| 欧美日韩你懂的| 自拍偷自拍亚洲精品播放| 国产一区二区三区在线观看免费视频| 欧美三级资源在线| 亚洲私人影院在线观看| 岛国精品在线播放| 国产午夜精品一区二区 | 欧洲一区二区av| 中文字幕亚洲综合久久菠萝蜜| 精品一区二区免费在线观看| 欧美日韩电影在线| 五月天中文字幕一区二区| 91丨porny丨蝌蚪视频| 国产人成亚洲第一网站在线播放 | 丰满放荡岳乱妇91ww| 精品国产欧美一区二区| 日韩高清不卡在线| 欧美日韩不卡在线| 首页亚洲欧美制服丝腿| 7777精品伊人久久久大香线蕉超级流畅 | 欧美视频一区二区三区四区| 国产精品嫩草99a| 国产精品中文有码| 久久久精品一品道一区| 国产精品一二三区在线| 亚洲国产成人在线| 成人美女视频在线看| 国产欧美日韩精品一区| 成人午夜视频网站| 亚洲欧美一区二区三区极速播放 | 日韩中文字幕1| 欧美一级在线免费| 久久99精品久久久久久国产越南 | 国产毛片精品视频| 久久久噜噜噜久噜久久综合| 国产精品一区三区| 中文天堂在线一区| 91福利在线导航| 日日欢夜夜爽一区| 日韩手机在线导航| 国产成人精品一区二区三区网站观看 | 国产日韩欧美a| 成人性色生活片| ...中文天堂在线一区| 欧美丝袜丝nylons| 蜜臀久久久99精品久久久久久| 欧美变态口味重另类| 粉嫩av一区二区三区粉嫩| 亚洲素人一区二区| 日韩一区二区精品在线观看| 国产乱一区二区| 亚洲男女毛片无遮挡| 日韩限制级电影在线观看| 国产999精品久久久久久| 亚洲一区二区在线视频| 日韩午夜激情免费电影|