⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imgedit.h

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
BOOL readCursorFromData( void *data, char *fname, WRInfo *info, WResLangNode *lnode );

/* iesave.c */
BOOL saveBitmapToData( img_node *node, BYTE **data, uint_32 *size );
BOOL saveImgToData( img_node *node, BYTE **data, uint_32 *size );
BOOL SaveFile( short how );
BOOL SaveFileFromNode( img_node *node, short how );
BOOL SaveColourPalette( void );
void SetInitialSaveDir( char *new_dir );
char *GetInitSaveDir( void );

/* ienew.c */
WPI_DLGRESULT CALLBACK SelImgProc( HWND hwnd, WPI_MSG msg, WPI_PARAM1 wparam,
                                                      WPI_PARAM2 lparam );
WPI_DLGRESULT CALLBACK SelBitmapProc( HWND hwnd, WPI_MSG msg, WPI_PARAM1 wparam,
                                       WPI_PARAM2 lparam );
#ifndef __OS2_PM__
BOOL CALLBACK SelCursorProc( HWND hwnd, UINT msg, UINT wparam, LONG lparam );
#endif
int NewImage( int img_type, char *filename );

/* iedraw.c */
void CalculateDims( short img_width, short img_height, short *area_width, short *area_height );
void BlowupImage( HWND hmdiwnd, WPI_PRES pres );
void IEInvalidateNode( img_node *node );
void CheckBounds( HWND hwnd, WPI_POINT *pt );
void DrawLine( HWND hwnd, WPI_POINT *start_pt, WPI_POINT *end_pt, int mousebutton );
void OutlineLine( HWND hwnd, WPI_POINT *start_pt, WPI_POINT *end_pt, WPI_POINT *prev_pt, BOOL firsttime );
void DisplayRegion( HWND hwnd, WPI_POINT *start_pt, WPI_POINT *end_pt, int mousebutton );
void OutlineClip( HWND hwnd, WPI_POINT *start_pt, WPI_POINT *end_pt, WPI_POINT *prev_pt, BOOL firsttime );
void OutlineRegion( HWND hwnd, WPI_POINT *start_pt, WPI_POINT *end_pt, WPI_POINT *prev_pt, BOOL firsttime );
void FillArea( WPI_POINT *pt, int mousebutton );
void CreateNewDrawPad( img_node *node );
void CreateDrawnImage( img_node *node );
void CheckGridItem( HMENU hmenu );
void ResetDrawArea( img_node *node );
void SetDrawTool( int tool_type );
void SetBrushSize( short new_size );
void RepaintDrawArea( HWND hwnd );
WPI_POINT GetPointSize( HWND hwnd );
void ResizeChild( WPI_PARAM2 lparam, HWND hwnd, BOOL firsttime );
void CheckSquareGrid( HMENU hmenu );
void MaximizeCurrentChild( void );
void DrawSinglePoint( HWND hwnd, WPI_POINT *pt, short mousebutton );
void Paint(HWND hwnd, WPI_POINT *start_pt, WPI_POINT *end_pt, int mousebutton );

/* drawproc.c */
MRESULT CALLBACK DrawAreaWinProc( HWND hwnd, WPI_MSG msg, WPI_PARAM1 wparam,
                                                            WPI_PARAM2 lparam );
int SetToolType( int toolid );
void InitializeCursors( void );
void CleanupCursors( void );

/* xorand.c */
void MakeBitmap( img_node *node, BOOL isnew );
void MakeIcon( img_node *node, BOOL isnew );
void RemoveIcon( short index );
void LineXorAnd( COLORREF xorcolour, COLORREF andcolour, WPI_POINT *startpt,
                                                        WPI_POINT *endpt );
void RegionXorAnd( COLORREF xorcolour, COLORREF andcolour, BOOL fFillRgn,
                                                WPI_RECT *r, BOOL is_rect );
void FillXorAnd( COLORREF brushcolour, WPI_POINT *pt, wie_clrtype colourtype );
void SetNewHotSpot( WPI_POINT *pt );
void FocusOnImage( HWND hwnd );
img_node *GetCurrentNode( void );
void SelectIcon( short index );
void DeleteActiveImage( void );

/* freehand.c */
void BeginFreeHand( HWND hwnd );
void DrawThePoints( COLORREF colour, COLORREF xorcolour, COLORREF andcolour,
                                                            WPI_POINT *pt );
void BrushThePoints( COLORREF colour, COLORREF xorcolour, COLORREF andcolour,
                                                WPI_POINT *pt, int brushsize );
void EndFreeHand( HWND hwnd );
BOOL GetFreeHandPresentationSpaces( WPI_PRES *win, WPI_PRES *and,
                                    WPI_PRES *xor );

/* clip.c */
void SetClipRect( HWND hwnd, WPI_POINT *startpt, WPI_POINT *endpt, WPI_POINT pointsize );
void IECopyImage( void );
void PlaceAndPaste( void );
void PasteImage( WPI_POINT *pt, WPI_POINT pointsize, HWND hwnd );
void CutImage( void );
void DragClipBitmap( HWND hwnd, WPI_POINT *newpt, WPI_POINT pointsize );
void CheckForClipboard( HMENU hmenu );
void RedrawPrevClip( HWND hwnd );
void SetRectExists( BOOL does_rect_exist );
void CleanupClipboard( void );
void DontPaste( HWND hwnd, WPI_POINT *topleft, WPI_POINT pointsize );
BOOL DoesRectExist( WPI_RECT *rc );
void SetDeviceClipRect( WPI_RECT *rect );

/* undo.c */
void RecordImage( HWND hwnd );
void UndoOp( void );
void CheckForUndo( img_node *node );
void CreateUndoStack( img_node *node );
void DeleteUndoStack( HWND hwnd );
void RedoOp( void );
void RestoreImage( void );
void AllowRestoreOption( img_node *node );
void ResetUndoStack( img_node *node );
void SelIconUndoStack( HWND hwnd, short index );
void AddIconUndoStack( img_node *node );
void DelIconUndoStack( img_node *node, int index );
BOOL RelieveUndos( void );

/* colours.c */
void InitPalette( void );
void SetBoxColours( palette_box *screen, palette_box *inverse, int num_colours, palette_box *avail_colours );
void DisplayColourBox( WPI_PRES pres, palette_box *box );
COLORREF GetInverseColour( COLORREF colour );
void ReplacePaletteEntry( COLORREF newcolour );
void ResetColourPalette( void );
COLORREF GetPaletteColour( int index );
int GetColourIndex( COLORREF colour );
void SetCurrentColours( BOOL fshowscreenclrs );
void InitFromColourPalette( palette_box *screen, palette_box *inverse, palette_box *avail_colours );
BOOL GetPaletteFile( a_pal_file *pal_file );
void SetNewPalette( a_pal_file *pal_file );
void RestoreColourPalette( void );
void InitPaletteBitmaps( HWND hwnd, HBITMAP *colourbitmap, HBITMAP *monobitmap );

/* iconinfo.c */
void FiniIconInfo( void );
void InitIconInfo( void );
BOOL CreateNewIcon( short *width, short *height, short *bitcount, BOOL is_icon);
void AddNewIcon( void );
void DeleteIconImg( void );
void SelectIconImg( void );
void SetIconInfo( img_node *node );

/* fill.c */
void Fill( fill_info_struct *fillinfo, img_node *node );

/* funcbar.c */
void InitFunctionBar( HWND hparent );
void CloseFunctionBar( void );
void ResizeFunctionBar( WPI_PARAM2 lparam );
void PressGridButton( void );

/* modclrs.c */
void EditColours( void );
void RestoreColours( void );
void SetColourMenus( img_node *node );

/* bkcolour.c */
void ChooseBkColour( void );

/* imgdata.c */
void AddImageNode( img_node *node );
img_node *SelectImage( HWND hwnd );
BOOL DeleteNode( HWND hwnd );
void DeleteList( void );
int DoImagesExist( void );
img_node *GetHeadNode( void );
img_node *GetNthIcon( HWND hwnd, short index );
img_node *GetImageNode( HWND hwnd );
void AddIconToList( img_node *icon, img_node *current_node);
img_node *RemoveIconFromList( img_node *node, int index );
img_node *SelectFromViewHwnd( HWND viewhwnd );

/* iestatus.c */
BOOL InitStatusLine( HWND parent );
void SetPosInStatus( WPI_POINT *pt, WPI_POINT *pointsize, HWND hwnd );
void SetSizeInStatus( HWND hwnd, WPI_POINT *startpt, WPI_POINT *endpt, WPI_POINT *pointsize );
void ResizeStatusBar( WPI_PARAM2 lparam );
void FiniStatusLine( void );
void SetHotSpot( img_node *node );
void ClearImageText( void );
void SetHintText( char *msg );
void PrintHintTextByID( DWORD id, char *fname );
void PrintHintText( char *msg, char *fname );
void WriteSetSizeText( DWORD msg, int x, int y );
void IEPrintAmtText( DWORD message, int amt );

/* iefonts.c */
void CreateStatusFont( void );
void DisplayImageText( img_node *node );

/* chgsize.c */
void ChangeImageSize( void );

/* settings.c */
void SelectOptions( void );
BOOL StretchPastedImage( void );
int GetRotateType( void );
BOOL DoKeepRect( void );
void SetSettingsDlg( settings_info *info );
void GetSettings( settings_info *info );
BOOL IsShiftWrap( void );

/* trnsform.c */
void FlipImage( WORD whichway );
void RotateImage( WORD whichway );
void ClearImage( void );
void ShiftImage( WORD shiftdirection );

/* ieprofil.c */
void LoadImgedConfig( void );
void SaveImgedConfig( void );

/* closeall.c */
void CloseAllImages( void );
void CloseCurrentImage( HWND hwnd );
void SaveAllImages( void );

/* bits.c */
bitmap_bits *GetTheBits( HBITMAP bitmap );
COLORREF MyGetPixel( bitmap_bits *bits, int x, int y );
void MySetPixel( bitmap_bits *bits, int x, int y, COLORREF colour );
void FreeTheBits( bitmap_bits *bits, HBITMAP bitmap, BOOL setbits );

/* iectl3d.c */
BOOL IECtl3DInit( HINSTANCE );
void IECtl3DFini( HINSTANCE );
void IECtl3dColorChange( void );
void IECtl3dSubclassDlg( HWND, WORD );

/* errors.c */
void WImgEditError( DWORD error, char *fname );

#ifndef __OS2_PM__
/* wincreat.c */
void Win_CreateColourPal( void );
HWND Win_CreateCurrentDisp( HWND hparent );
void Win_CreateColourCtrls( HWND hpar, HWND *colours, HWND *screenclrs, HWND *screentxt, HWND *inversetxt );
HWND WinCreateViewWin( HWND hviewwnd, BOOL foneview, int *showstate, int width, int height );
HWND WinNewDrawPad( img_node *node );

/* winutils.c */
void InitXorAndBitmaps( img_node *node );

/* icon.c */
void ImageFini(an_img *);
HBITMAP ImgToXorBitmap(HDC ,an_img *);
HBITMAP ImgToAndBitmap(HDC ,an_img *);
void ImageClose(an_img_file *);
an_img_file *ImageOpen(FILE *);
an_img_file *ImageOpenData(BYTE *, unsigned *);
an_img *ImgResourceToImg(FILE *, an_img_file *, UINT );
an_img *ImgResourceToImgData(BYTE *, unsigned *, an_img_file *, UINT );

/* snap.c */
void OutlineSnap( void );
void SnapPicture( void );
void TransferImage( HWND hwnd );

/* getdata.c */
void GetBitmapInfoHeader( BITMAPINFOHEADER *bmih, img_node *node );
void FillImageResource( an_img_resource *img_res, img_node *node );
void GetImageData( an_img *img, img_node *node );
BITMAPINFO *GetDIBitmapInfo( img_node *node );
void FreeDIBitmapInfo( BITMAPINFO *bmi );

/* pickbmp.c */
BOOL SelectDynamicBitmap( img_node *node, int imgcount, char *filename );
LONG CALLBACK BitmapPickProc( HWND hwnd, UINT msg, UINT wparam, LONG lparam );

/* hinttext.c */
void ShowHintText( UINT wparam );
void InitMenus( HMENU hmenu );

#else
/* pmcreate.c */
void PM_CreateColourPal( void );
HWND PM_CreateCurrentDisp( HWND hparent );
void PM_CreateColourCtrls( HWND hpar, HWND *colours, HWND *screenclrs,
                                        HWND *screentxt, HWND *inversetxt );
HWND PMNewDrawPad( img_node *node );
HWND PMCreateViewWin( HWND hviewwnd, BOOL foneview, int *showstate,
                                                int width, int height );

/* pmutils.c */
void InitXorAndBitmaps( img_node *node );
HBITMAP CreateInverseBitmap( HBITMAP andbitmap, HBITMAP xorbitmap );
HBITMAP CreateColourBitmap( HBITMAP andbitmap, HBITMAP xorbitmap );
WPI_HANDLE MakeWPIBitmap( HBITMAP hbitmap );

/* getdata.c */
void GetBitmapInfoHeader( WPI_BITMAPINFOHEADER *bmih, img_node *node );
BITMAPINFO2 *GetXorBitmapInfo( img_node *node );
BITMAPINFO2 *GetAndBitmapInfo( img_node *node );
void FreeDIBitmapInfo( BITMAPINFO2 *bmi );

/* hinttext.c */
void ShowHintText( MPARAM wparam );

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -