mikrokosmos
[ class tree: mikrokosmos ] [ index: mikrokosmos ] [ all elements ]

Procedural File: mk_lib_images.php

Source Location: /lib/mk_lib_images.php



Page Details:



Tags:

filesource:  Source Code for this file








create_bitmap_shapeTag [line 854]

void create_bitmap_shapeTag( mixed $shapeID, mixed $bitmapID, mixed $bitmapWidth, mixed $bitmapHeight, [mixed $x = 0], [mixed $y = 0])

private:

create a shape character that will represent bitmap in the movie




[ Top ]



get_alphaData [line 278]

void get_alphaData( mixed $rawColordata)

return alpha pixelmap



[ Top ]



get_file_ext [line 409]

void get_file_ext( mixed $fileName)

generic: returns extension from given file name



[ Top ]



get_IHDR_data [line 192]

void get_IHDR_data( mixed $pngChunk)

generic:

reads IHDR png data, determining: image width image height bit depth color type compression type filter method interlace method




[ Top ]



get_IHDR_data_from_file [line 223]

void get_IHDR_data_from_file( mixed $pngPath)

generic:

reads IHDR png data from a png image file wrapper for get_IHDR_data




[ Top ]



get_imageFileName [line 367]

void get_imageFileName( mixed $swfFileName, [mixed $frameIndex = 0], [mixed $bitmapID = 0], [mixed $bitmapType = ""])

generic: retrieve a valid image file name based on

swf file name, frame index (starting from 1), character id bitmap type, if not given returns base file name




[ Top ]



get_imageType [line 329]

void get_imageType( mixed $bmType)

generic:

return a convenient human-readable definition for image type




[ Top ]



get_image_bitDepth [line 346]

void get_image_bitDepth( mixed $bmDepth)

generic:

return a convenient human-readable definition for image bit depth




[ Top ]



get_image_ext [line 391]

void get_image_ext( mixed $bitmapType)

generic: retrieve a valid extension image file name

based on image type




[ Top ]



get_jpeg_dimensions [line 145]

void get_jpeg_dimensions( mixed $jpegChunk)

generic:

return an array containing width and height of a jpeg image only a part of jpeg data is necessary




[ Top ]



get_jpeg_dimensions_from_file [line 171]

void get_jpeg_dimensions_from_file( mixed $jpgPath)

generic:

reads some jpeg data from jpeg file wrapper for get_jpeg_dimension




[ Top ]



get_LS8_alphaData [line 296]

void get_LS8_alphaData( mixed $rgbacolorTable)

private:

get alpha channel data




[ Top ]



get_LS8_colorTable [line 310]

void get_LS8_colorTable( mixed $rgbacolorTable)

private:

get color Table data




[ Top ]



get_rgbData [line 236]

void get_rgbData( mixed $rawColordata, mixed $rawType, [mixed $bimapWidth = 0], [mixed $bitmapHeight = 0])

private: converts 15 bit pixelmap to rgb



[ Top ]



get_thumb_filename [line 961]

void get_thumb_filename( mixed $imgFN)

generic:

build a valid "thumbname" from a given image file name e.g.: myimage.png becomes myimage_th.png




[ Top ]



read_bitmapTag [line 24]

void read_bitmapTag( mixed $bmTagtype, mixed $bmTagdata)

private:

reads bitmap data image types: JPEG -> DefineBits JPEG2 -> DefineBitsJPEG2 JPEG_ALPHA -> DefineBitsJPEG3 IMAGE_LOSSLESS -> DefineBitsLossless IMG_LS_PALETTE_8 -> 3 IMG_LS_PALETTE_15 -> 4 IMG_LS_RGB -> 5 IMAGE_LOSSLESS_ALPHA -> DefineBitsLossless2 IMG_LS_PALETTE_8_ALPHA -> 3 IMG_LS_RGB_ALPHA -> 5




[ Top ]



save_gray_alpha [line 610]

void save_gray_alpha( mixed $pngout, mixed $alphaData, mixed $bitmapWidth, mixed $bitmapHeight)

private: save 8bpp png with alpha data



[ Top ]



save_index_alpha [line 634]

void save_index_alpha( mixed $pngout, mixed $alphaData, mixed $pixelData, mixed $bitmapWidth, mixed $bitmapHeight)

private: save 8bpp png havint 2bit alpha data



[ Top ]



save_jpeg_alpha [line 475]

void save_jpeg_alpha( mixed $pngout, mixed $jpegData, mixed $alphaData, mixed $bitmapWidth, mixed $bitmapHeight)

private:

save a lossy data image with alpha channel




[ Top ]



save_lossless_8 [line 520]

void save_lossless_8( mixed $pngout, mixed $pixelData, mixed $colorTable, mixed $bitmapWidth, mixed $bitmapHeight)

private:

save a lossless data image




[ Top ]



save_lossless_8_alpha [line 563]

void save_lossless_8_alpha( mixed $pngout, mixed $pixelData, mixed $colorTable, mixed $alphaData, mixed $bitmapWidth, mixed $bitmapHeight)

private:

save a lossless data image with alpha channel




[ Top ]



save_lossless_rgb [line 416]

void save_lossless_rgb( mixed $pngout, mixed $rgbData, mixed $bitmapWidth, mixed $bitmapHeight)

private:

save a full data image




[ Top ]



save_lossless_rgb_alpha [line 442]

void save_lossless_rgb_alpha( mixed $pngout, mixed $rgbData, mixed $alphaData, mixed $bitmapWidth, mixed $bitmapHeight)

private:

save a full data image with alpha channel




[ Top ]



thumbnailize_jpeg [line 913]

void thumbnailize_jpeg( mixed $jpegFN, mixed $jpegDir, mixed $tnDir, [mixed $tn_w = 100], [mixed $jpegQuality = 100])

+-------------------------------------------------+

| J P G T h u m b n a i l G e n e r a t o r | +--------------------+----------------------------+ | by Kadir Yazgan | ( kadiryazgan@ixir.com ) | +--------------------+----------------------------+ v1.0

Generates a proportional thumbnail image with a given width.

This script only uses JPEG files. If required libraries are included GIF and PNG files can also be supported the same way.

P a r a m e t e r s $jpegDir: Directory where original images reside. $tnDir: Directory where the thumbnails will be saved. $tn_w: Thumbnail width. $jpegQuality: quality of compression (0 - 100)

note: heavingly edited by jaco_at_pixeldump




[ Top ]



translate_jpeg [line 123]

void translate_jpeg( mixed $rawJPEG)

private:

get jpeg data and "translate" to a valid jpeg image




[ Top ]



write_bitmapTag_jpeg [line 667]

void write_bitmapTag_jpeg( mixed $bitmapType, mixed $bitmapID, mixed $imagePath, [mixed $pngAlpha = ""], [mixed $quality = 100], [mixed $wrapArray = false])

private:

writes swf bitmap tag type from given JPEG image




[ Top ]



write_bitmapTag_png [line 731]

void write_bitmapTag_png( mixed $bitmapID, mixed $imagePath, [mixed $wrapArray = false])

private:

writes swf bitmap tag type from given PNG image




[ Top ]



Documentation generated on Tue, 30 May 2006 20:14:43 +0000 by phpDocumentor 1.3.0RC4