BMP Structs
This commit is contained in:
@@ -286,6 +286,68 @@ private:
|
||||
bool FilamentSetMillis = true;
|
||||
int FilamentRunoutCounter = 0;
|
||||
#endif
|
||||
|
||||
|
||||
#if ENABLED(KNUTWURST_MEGA_P_LASER)
|
||||
typedef struct {
|
||||
|
||||
unsigned char bfType[2];
|
||||
unsigned char bfSize[4];
|
||||
unsigned char bfReserved1[2];
|
||||
unsigned char bfReserved2[2];
|
||||
unsigned char bfOffBits[4];
|
||||
unsigned char biSize[4];
|
||||
unsigned char biWidth[4];
|
||||
unsigned char biHeight[4];
|
||||
unsigned char biPlanes[2];
|
||||
unsigned char biBitCount[2];
|
||||
unsigned char biCompression[4];
|
||||
unsigned char biSizeImage[4];
|
||||
unsigned char biXPelsPerMeter[4];
|
||||
unsigned char biYPelsPerMeter[4];
|
||||
unsigned char biClrUsed[4];
|
||||
unsigned char biClrImportant[4];
|
||||
}BMP_HEAD;
|
||||
|
||||
|
||||
|
||||
typedef struct
|
||||
{ /*ͼƬ<CDBC><C6AC>ӡ<EFBFBD><D3A1><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD>**/
|
||||
unsigned long pic_file_size;
|
||||
unsigned long pic_ptr;
|
||||
unsigned long pic_start;
|
||||
|
||||
float pic_pixel_distance;//<2F><><EFBFBD><EFBFBD>֮<EFBFBD><D6AE>ľ<EFBFBD><C4BE>루0.1-0.3<EFBFBD><EFBFBD>
|
||||
float laser_height;//<2F><><EFBFBD><EFBFBD>߶<EFBFBD>
|
||||
float x_offset;//X<><58><EFBFBD><EFBFBD><EFBFBD>ƫ<EFBFBD><C6AB>
|
||||
float y_offset;//Y<><59><EFBFBD><EFBFBD><EFBFBD>ƫ<EFBFBD><C6AB>
|
||||
|
||||
unsigned int pic_realy_widht;
|
||||
unsigned int pic_widht;
|
||||
unsigned int pic_hight;
|
||||
unsigned char pic_bit;
|
||||
unsigned char pic_widht_odd; //<2F><>ż<EFBFBD><C5BC>
|
||||
unsigned char pic_hight_odd; //<2F><>ż<EFBFBD><C5BC>
|
||||
|
||||
unsigned char pic_print_status; //<2F><>ӡ״̬
|
||||
unsigned char pic_dir;//ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>
|
||||
|
||||
unsigned char pic_vector;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʸ<EFBFBD><CAB8>ͼ<EFBFBD><CDBC>1Ϊʸ<CEAA><CAB8>ͼ<EFBFBD><CDBC>0Ϊλͼ
|
||||
unsigned char pic_x_mirror; //X<><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,1Ϊ<31><CEAA><EFBFBD><EFBFBD>
|
||||
unsigned char pic_y_mirror; //Y<><59><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1Ϊ<31><CEAA><EFBFBD><EFBFBD>
|
||||
unsigned char pic_laser_time;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>䣨10-30<33><30>
|
||||
|
||||
|
||||
|
||||
}PRINTER_STRUCT;
|
||||
|
||||
#define PIC_FIXED 0.1f // // POINT/MM
|
||||
#define PIC_OPEN 50 // // ms
|
||||
#define PIC_SPEDD 20000
|
||||
#define MIN_GRAY_VLAUE 20 //<2F><>С<EFBFBD>ĻҶ<C4BB>ֵ С<>ڸ<EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define LASER_PRINT_SPEED 30 //50*60
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
extern AnycubicTouchscreenClass AnycubicTouchscreen;
|
||||
|
Reference in New Issue
Block a user