redarrow Posted August 13, 2006 Share Posted August 13, 2006 Hi everyone i am currently learning the whole of the gd libbarry can you kindly give me a link to learn the gd libbary in a more friedly way then the php.net thank you.example you see all the table contents below i would like a link i can goto and it's got all the statements listed as one page and a little example instead of going to every link manualy.[b]if you dont no a link but use the gd libbary a lot then point me in the most and usefull statements to use from the list below as i want to study the most populer ones cheers.[/b][code]Table of Contentsgd_info -- Retrieve information about the currently installed GD librarygetimagesize -- Get the size of an imageimage_type_to_extension -- Get file extension for image type image_type_to_mime_type -- Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetypeimage2wbmp -- Output image to browser or fileimagealphablending -- Set the blending mode for an imageimageantialias -- Should antialias functions be used or not imagearc -- Draw a partial ellipseimagechar -- Draw a character horizontallyimagecharup -- Draw a character verticallyimagecolorallocate -- Allocate a color for an imageimagecolorallocatealpha -- Allocate a color for an imageimagecolorat -- Get the index of the color of a pixelimagecolorclosest -- Get the index of the closest color to the specified colorimagecolorclosestalpha -- Get the index of the closest color to the specified color + alphaimagecolorclosesthwb -- Get the index of the color which has the hue, white and blackness nearest to the given color imagecolordeallocate -- De-allocate a color for an imageimagecolorexact -- Get the index of the specified colorimagecolorexactalpha -- Get the index of the specified color + alphaimagecolormatch -- Makes the colors of the palette version of an image more closely match the true color version imagecolorresolve -- Get the index of the specified color or its closest possible alternative imagecolorresolvealpha -- Get the index of the specified color + alpha or its closest possible alternative imagecolorset -- Set the color for the specified palette indeximagecolorsforindex -- Get the colors for an indeximagecolorstotal -- Find out the number of colors in an image's paletteimagecolortransparent -- Define a color as transparentimageconvolution -- Apply a 3x3 convolution matrix, using coefficient div and offset imagecopy -- Copy part of an imageimagecopymerge -- Copy and merge part of an imageimagecopymergegray -- Copy and merge part of an image with gray scaleimagecopyresampled -- Copy and resize part of an image with resamplingimagecopyresized -- Copy and resize part of an imageimagecreate -- Create a new palette based imageimagecreatefromgd2 -- Create a new image from GD2 file or URLimagecreatefromgd2part -- Create a new image from a given part of GD2 file or URLimagecreatefromgd -- Create a new image from GD file or URLimagecreatefromgif -- Create a new image from file or URLimagecreatefromjpeg -- Create a new image from file or URLimagecreatefrompng -- Create a new image from file or URLimagecreatefromstring -- Create a new image from the image stream in the stringimagecreatefromwbmp -- Create a new image from file or URLimagecreatefromxbm -- Create a new image from file or URLimagecreatefromxpm -- Create a new image from file or URLimagecreatetruecolor -- Create a new true color imageimagedashedline -- Draw a dashed lineimagedestroy -- Destroy an imageimageellipse -- Draw an ellipseimagefill -- Flood fillimagefilledarc -- Draw a partial ellipse and fill itimagefilledellipse -- Draw a filled ellipseimagefilledpolygon -- Draw a filled polygonimagefilledrectangle -- Draw a filled rectangleimagefilltoborder -- Flood fill to specific colorimagefilter -- Applies a filter to an image imagefontheight -- Get font heightimagefontwidth -- Get font widthimageftbbox -- Give the bounding box of a text using fonts via freetype2imagefttext -- Write text to the image using fonts using FreeType 2imagegammacorrect -- Apply a gamma correction to a GD imageimagegd2 -- Output GD2 image to browser or fileimagegd -- Output GD image to browser or fileimagegif -- Output image to browser or fileimageinterlace -- Enable or disable interlaceimageistruecolor -- Finds whether an image is a truecolor imageimagejpeg -- Output image to browser or fileimagelayereffect -- Set the alpha blending flag to use the bundled libgd layering effects imageline -- Draw a lineimageloadfont -- Load a new fontimagepalettecopy -- Copy the palette from one image to anotherimagepng -- Output a PNG image to either the browser or a fileimagepolygon -- Draw a polygonimagepsbbox -- Give the bounding box of a text rectangle using PostScript Type1 fonts imagepsencodefont -- Change the character encoding vector of a fontimagepsextendfont -- Extend or condense a fontimagepsfreefont -- Free memory used by a PostScript Type 1 fontimagepsloadfont -- Load a PostScript Type 1 font from fileimagepsslantfont -- Slant a fontimagepstext -- To draw a text string over an image using PostScript Type1 fontsimagerectangle -- Draw a rectangleimagerotate -- Rotate an image with a given angleimagesavealpha -- Set the flag to save full alpha channel information (as opposed to single-color transparency) when saving PNG images imagesetbrush -- Set the brush image for line drawingimagesetpixel -- Set a single pixelimagesetstyle -- Set the style for line drawingimagesetthickness -- Set the thickness for line drawingimagesettile -- Set the tile image for fillingimagestring -- Draw a string horizontallyimagestringup -- Draw a string verticallyimagesx -- Get image widthimagesy -- Get image heightimagetruecolortopalette -- Convert a true color image to a palette imageimagettfbbox -- Give the bounding box of a text using TrueType fontsimagettftext -- Write text to the image using TrueType fontsimagetypes -- Return the image types supported by this PHP buildimagewbmp -- Output image to browser or fileimagexbm -- Output XBM image to browser or file iptcembed -- Embed binary IPTC data into a JPEG imageiptcparse -- Parse a binary IPTC http://www.iptc.org/ block into single tags. jpeg2wbmp -- Convert JPEG image file to WBMP image filepng2wbmp -- Convert PNG image file to WBMP image file[/code] Quote Link to comment Share on other sites More sharing options...
Chetan Posted August 13, 2006 Share Posted August 13, 2006 Try googly, i mean googling 'GD Programming in PHP' I normally get what I want on Googly. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 13, 2006 Author Share Posted August 13, 2006 i have tried goolgling for hours that why i asked please post a link thank you. Quote Link to comment Share on other sites More sharing options...
Chetan Posted August 13, 2006 Share Posted August 13, 2006 I never learnt GD because of that, I only copy - paste from php.net. And I never even needed it, so I cant help you. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 13, 2006 Author Share Posted August 13, 2006 ok but thank you. Quote Link to comment Share on other sites More sharing options...
Barand Posted August 13, 2006 Share Posted August 13, 2006 Here's my shortlist of most usedgetimagesize -- Get the size of an imageimagearc -- Draw a partial ellipseimagechar -- Draw a character horizontallyimagecharup -- Draw a character verticallyimagecolorallocate -- Allocate a color for an imageimagecolorat -- Get the index of the color of a pixelimagecolorset -- Set the color for the specified palette indeximagecolortransparent -- Define a color as transparentimagecopy -- Copy part of an imageimagecopymerge -- Copy and merge part of an imageimagecopymergegray -- Copy and merge part of an image with gray scaleimagecopyresampled -- Copy and resize part of an image with resamplingimagecopyresized -- Copy and resize part of an imageimagecreate -- Create a new palette based imageimagecreatefromjpeg -- Create a new image from file or URLimagecreatefrompng -- Create a new image from file or URLimagecreatetruecolor -- Create a new true color imageimagedashedline -- Draw a dashed lineimagedestroy -- Destroy an imageimageellipse -- Draw an ellipseimagefill -- Flood fillimagefilledarc -- Draw a partial ellipse and fill itimagefilledellipse -- Draw a filled ellipseimagefilledpolygon -- Draw a filled polygonimagefilledrectangle -- Draw a filled rectangleimagefilltoborder -- Flood fill to specific colorimagefontheight -- Get font heightimagefontwidth -- Get font widthimagegif -- Output image to browser or fileimageinterlace -- Enable or disable interlaceimageistruecolor -- Finds whether an image is a truecolor imageimagejpeg -- Output image to browser or fileimageline -- Draw a lineimagepalettecopy -- Copy the palette from one image to anotherimagepng -- Output a PNG image to either the browser or a fileimagepolygon -- Draw a polygonimagerectangle -- Draw a rectangleimagerotate -- Rotate an image with a given angleimagesetbrush -- Set the brush image for line drawingimagesetpixel -- Set a single pixelimagesetstyle -- Set the style for line drawingimagesetthickness -- Set the thickness for line drawingimagesettile -- Set the tile image for fillingimagestring -- Draw a string horizontallyimagestringup -- Draw a string verticallyimagesx -- Get image widthimagesy -- Get image heightimagetruecolortopalette -- Convert a true color image to a palette imageimagettfbbox -- Give the bounding box of a text using TrueType fontsimagettftext -- Write text to the image using TrueType fonts Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 13, 2006 Author Share Posted August 13, 2006 Thank you so much so in essance studying your short list will enable me to do most gd aspectscheers? Quote Link to comment Share on other sites More sharing options...
Barand Posted August 13, 2006 Share Posted August 13, 2006 They are the basic image creationsizingcolor definitionshape drawingtext drawingimage output Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 13, 2006 Author Share Posted August 13, 2006 thank you.one more quistion have you got any links to easly use the desired gd libary please cheers. Quote Link to comment Share on other sites More sharing options...
Barand Posted August 13, 2006 Share Posted August 13, 2006 Only to the manual, sorry.Googling "php gd tutorial" finds quite a few links Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 13, 2006 Author Share Posted August 13, 2006 Thank you for your help most needed cheers.I will be studying the above as above and i have printed the gd list out thank you so much. Quote Link to comment Share on other sites More sharing options...
Chetan Posted August 13, 2006 Share Posted August 13, 2006 Actually I would use it too, maybe I can learn stuff. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.