15,471
社区成员
发帖
与我相关
我的任务
分享
#ifndef MyDll_H_
#define MyDll_H_
#ifdef MYLIBDLL
#define MYLIBDLL extern "C" _declspec(dllimport)
#else
#define MYLIBDLL extern "C" _declspec(dllexport)
#endif
typedef struct
{
BYTE* dataL;
BYTE* dataR;
BYTE* smallimg[9];
int width;
int height;
int bpp;
} FileImageDescripter;
MYLIBDLL FileImageDescripter* theNewImagesSourceFromFile2(Bitmap* img0);
MYLIBDLL BYTE* CompositeFinalImage2(FileImageDescripter* fid, int viewnum, int width, int height,float cot, float cover, float offset,int bmpwidth,int bmpheight,int style);
MYLIBDLL bool saveBmp(const char *bmpName,unsigned char* imgBuf,int width,int height,int biBitCount);
#endif
#include "stdafx.h"
#include "MyDll.h"
#include <iostream>
using namespace std;
#include "FixGDI.h"
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")
FileImageDescripter* theNewImagesSourceFromFile2(Bitmap* img0)
{
***
}
******