summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c:
* * generic/tkImgPhoto.c (ImgPhotoBlendComplexAlpha): OS X useshobbs2003-10-311-2/+2
| | | | 32bpp images internally always, so make use of the assumption.
* * generic/tkImgPhoto.c (ImgPhotoBlendComplexAlpha): add alphahobbs2003-10-311-16/+251
| | | | | blending for images with partial transparency. Only operates for 15bpp+ display. [Bug 809157]
* Faster color data parsing code for the [$photo put] subcommand.dkf2003-08-151-21/+52
|
* Try harder to avoid zero-length malloc()s... [Bug 404421]dkf2003-07-171-25/+38
|
* Rearranged code in ImgPhotoCmd to not use confusing fallthroughs in switches.dkf2003-07-171-28/+19
| | | | | [Bug 771988] Also TAB Police in Changelog...
* TIP#116 implementation. Docs still to come, tests will never be done becausedkf2003-03-061-32/+140
| | | | | they could never be done portably as they'd inevitably depend on the total amount of memory available to the process... :^(
* * tests/imgPhoto.test:hobbs2002-10-181-7/+15
| | | | | * generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling for missing -format or -data options. [Bug #624974]
* * generic/tkImgPhoto.c (ImgPhotoSetSize): Only error-out if wedkf2002-10-091-40/+48
| | | | | | | | | fail to allocate a non-empty buffer; getting a NULL when we allocate an empty buffer is no problem since nothing will look at the value anyway. [Bug 619544] Also tidied up file to take into account the fact that we're using 32 bits per pixel in the master to accommodate the alpha channel as well as RGB.
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-7/+7
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)
* tests/visual_vv.test: Removed some dependence on [exec]ed utilitiesdkf2002-07-111-41/+129
| | | | | | generic/tkImgPhoto.c: Allowed photo image buffer allocation to fail more tests/imgPhoto.test: gracefully in some cicumstances. The remaining ones require API changes before they can fail nicely.
* Changed some _Old and _OLD to more descriptive terms.dkf2002-06-141-6/+6
|
* TIP#98 implementation; improved photo image copy and GIF frame accessdkf2002-06-141-187/+345
|
* * generic/tkImgPhoto.c: Added PhotoFormatThreadExitProc to cleanhobbs2002-04-121-116/+171
| | | | up on thread exit. (Tk_PhotoPutBlock) slight code updates
* Minor fixes as part of TIP#72 (and one just noticed in passing)dkf2002-02-191-4/+4
|
* Final part of TIP#14 support (photo image transparency access); the C APIdkf2002-02-011-112/+251
| | | | stuff has been in there for ages for some reason...
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-251-3/+3
| | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
* * Updates to handle change in type of tablePtrdgp2002-01-171-2/+2
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* Added panic in ImgPhotoInstanceSetSize in case of failure to get pixmapchengyemao2001-12-071-1/+5
|
* * generic/tkImgGIF.c:andreas_kupries2001-09-141-1/+5
| | | | | | | | | * generic/tkImgPPM.c: * generic/tkImgPhoto.c: * generic/tkMenu.c: Applied patch [461578], provided by Vincent Darley. This fixes several memory leaks in the image code. They happen if there are errors during the initialization of the channel the image is supposed to be read from.
* * generic/tkImgPhoto.c (ImgPhotoCmd): corrected the src and desthobbs2001-04-031-2/+2
| | | | | values for $imageName put when -format and -to are used. [Bug #232741]
* Added TkPhotoGetValidRegion() to tkInt stubs. Bug #120930 closed.dkf2000-11-211-1/+32
|
* Comment correction.ericm2000-08-211-3/+3
|
* Removed unused variable left behind from previous check-in.ericm2000-08-191-2/+1
|
* * generic/tkImgPhoto.c (ImgPhotoGet): Removed redundant call toericm2000-08-181-11/+2
| | | | | | DitherInstance; this call was formerly being made from ImgPhotoGet->ImgPhotoConfigureInstance->DitherInstance, and ImgPhotoGet->DitherInstance. The second call was removed.
* * generic/tkImage.c (Tk_PostscriptImage): added check to createhobbs2000-04-251-3/+43
| | | | | | | | | | | necessary prolog for photos * generic/tkCanvPs.c: added Tk_PostscriptPhoto that outputs PS for photo images * generic/tkImgPhoto.c: new func ImgPhotoPostscript and added that in as ps proc in tkPhotoImageType. * generic/tkStubInit.c: * generic/tkDecls.h: * generic/tk.decls: added Tk_PostscriptPhoto
* * generic/tkDecls.h:hobbs2000-02-081-34/+17
| | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tk.h: moved new public functions created in dash patch to the stubs interface [Bug: 4062] * generic/tk.h: * doc/CrtImgType.3: * doc/CrtPhImgFmt.3: * generic/tk.h: * generic/tkImgGIF.c: * generic/tkImgPhoto.c: * generic/tkStubImg.c (new file): * generic/tkTest.c: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: improved support for moving from the old style image C API to the new obj'ified one with new Tk_InitImageArgs command and stub'ing of image code. See docs for how to make the transition. [Bug: 4060]
* Fix for bug #4103.ericm2000-01-311-4/+2
|
* * generic/tkImgPhoto.c: Fixed bug with use of binary data forericm2000-01-271-2/+2
| | | | "-data" option to "image create" command.
* * generic/tkImgPhoto.c: Added some comments regarding slowericm2000-01-261-3/+27
| | | | | | | | | | | processing of transparent images. * generic/tkImgGIF.c: Improved GIF decoder for ~60% speed increase. Added some comments on how to further improve the implementation, time permitting. * doc/photo.n: Added a description of what the -data string can contain (base64 or binary data).
* * generic/tkImgPhoto.c: Fixed bug with use of binary data forericm2000-01-261-4/+8
| | | | "-data" option to "image create" command.
* added declaration for PhotoOptionCleanupProc to prevent warninghobbs1999-12-151-1/+3
|
* * generic/tkStubInit.c:hobbs1999-12-141-15/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkDecls.h: * generic/tkIntXlibDecls.h: * generic/tkInt.decls: added XSetDashes and XWarpPointer * generic/tk.decls: added Tk_CreateSmoothMethod, and reserved two spots * generic/tk.h: added Tk_SmoothMethod struct, state item to canvas record, #defines for item state, support for using old char*-based canvas item C creation procedures with -DUSE_OLD_CANVAS, Tk_Dash, Tk_TSOffset (-offsets) & Tk_Outline structs and #defs, decls for dash, outline and postscript routines * generic/tkBind.c: added support for Quadruple clicks, and added the -warp option to 'event' with pointer warping routines * xlib/xgc.c: * generic/tkRectOval.c: * generic/tkCanvArc.c: * generic/tkCanvBmap.c: * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvPs.c: * generic/tkCanvText.c: * generic/tkCanvUtil.c: * generic/tkCanvWind.c: * generic/tkCanvas.c: * generic/tkCanvas.h: Canvas and items received overhaul to with the addition of the dash patch (Nijtmans, et al) This includes objectification of the 'canvas' command, as well as support for (where appropriate) dashes in items, extended stipple support, state for all items, and postscript generation of images and windows. See the new canvas man page for related docs. * generic/tkEntry.c: added entry widget validation, see entry.n * generic/tkEvent.c: on simulated events, ButtonPress should be matched with ButtonRelease to be correct * generic/tkFont.c: corrected possible null reference * generic/tkFrame.c: made frame a Tcl_Obj based command * generic/tkGet.c: added TkGetDoublePixels * generic/tkImage.c: bug fixes from Img patch and new Tk_PostscriptImage and Tk_SetTSOrigin functions * generic/tkImgBmap.c: new ImgBmapPostscript function * generic/tkImgPhoto.c: new Tk_CreatePhotoOption, Tk_DitherPhoto * generic/tkInt.h: declarations for some new functions * generic/tkMessage.c: reworked relief drawing * generic/tkOldConfig.c: added TK_CONFIG_OBJS so old style ConfigureWidget calls can pass in Tcl_Obj arrays * generic/tkScrollbar.c: * generic/tkScrollbar.h: made -orient use an option table * generic/tkText.c: * generic/tkText.h: made -wrap and -state use option tables * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextMark.c: * generic/tkTextTag.c: * generic/tkTextWind.c: added support for -elide and -state hidden * generic/tkTrig.c: changed TkMakeBezierCurve to support returning the upper limit of points needed for spline * generic/tkUtil.c: new option table parsing routines * generic/tkWindow.c: init'ing of warp stuff, mouseButtonState
* * generic/tk.h:hobbs1999-10-291-219/+986
| | | | | | | | | | | | | | | * generic/tkCmds.c: * generic/tkImage.c: * generic/tkImgBmap.c: * generic/tkImgGIF.c: * generic/tkImgPPM.c: * generic/tkImgPhoto.c: * generic/tkInt.h: * generic/tkTest.c: * generic/tkWindow.c: * tests/imgPhoto.test: added Img patch (Nijtmans) with docs, headers #def'd with USE_OLD_IMAGE. Upgrades image stuff to Tcl_Obj API, adds alpha channel (images are now 32 bpp)
* Patches from Bug: 2068 2080 2269redman1999-07-011-1/+3
|
* * Merged changes from 8.1.0 branchstanton1999-04-301-1/+1
|
* merged 8.1.0 changes into mainlinestanton1999-04-241-1/+10
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-15/+28
|
* integrated stubs into 8.0 main branchstanton1999-03-101-1/+8
|
* * generic/tkImgPhoto.c: Changed so color tables are freedstanton1999-02-041-7/+15
| | | | | immediately instead of being delayed. This ensures that color tables are properly disposed at process exit.
* Removed old/unused function declarationsrjohnson1998-09-301-5/+1
| | | | | removed unused file on Mac implementation made bell cmd an obj cmd - improved it's test suite
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+4144