Sponsored Content
Top Forums Programming Looking For the Best Way to Rotate an Image: JavaScript, PHP, HTML etc Post 302564373 by Corona688 on Thursday 13th of October 2011 01:25:55 PM
Old 10-13-2011
What did you try in PHP?

What kind of image is it? For best results when doing complicated things like rotation, it should be 24-bit color with alpha channel, not 8-bit color with a transparent color.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Send mail with rich text / HTML with image

Hi, Is it possible to send mail from my HP-Ux system with images, rich text? I would like to program in such a way that I have my company's logo(.jpg) image attached in the mail geeting triggered. I would like to send a rich text/HTML email instead of plain text mail to the recipients. Is it... (2 Replies)
Discussion started by: rythym05
2 Replies

2. Web Development

Help with passing HTML values in to JavaScript

Not sure if this is the right place to ask this but here goes. I am creating a cheat sheet for co-workers. The concept is that you pick wire size and conduit size and the amount of wires that will fit is displayed. I haven't used alot of drop downs and can't quite figure out the way the get id... (3 Replies)
Discussion started by: zero3ree
3 Replies

3. Shell Programming and Scripting

Javascript or HTML to retrieve apache username

I have a internal wesbite set up and any visitor must enter username / passwd as defined in apache (I've set these up using htpasswd) I use cgi scripts set up using ksh or javascript to populate pages / tables etc. I want to be able to get the apache username that the used authorised... (3 Replies)
Discussion started by: frustrated1
3 Replies

4. Programming

Javascript question: using the image button

I have javascript that I want to use to build up a dynamic array: the user clicks on one or more images and when clicking the Show button, the list of image names is displayed that the user clicked. <script type="text/javascript"> var images = ; images =... (0 Replies)
Discussion started by: figaro
0 Replies

5. Shell Programming and Scripting

Download dynamic generated image from HTML page

I've an HTML page where the pie chart is generated with google java code with the required input values in UNIX. The HMTL page is generated in UNIX and then when it loads in browser, the code is interpreted thought internet and the pie chart is generated. This is done by the java code in the... (4 Replies)
Discussion started by: Amutha
4 Replies

6. Shell Programming and Scripting

Insert an image in HTML mail sent from Shell script

Hi Shell Experts I am trying to insert an image into HTML email through shell script send mail, I have the email text file which included body and the images included in it in html format. Through my Shell script, I am calling the text file and send it through email so it it sends the email with... (21 Replies)
Discussion started by: anji009
21 Replies

7. Shell Programming and Scripting

Embed image to the html script

hi, trying to embed an image to the html file to send out as an email. img src="data:image/jpeg;base64,$(base64 /home/test/abc.jpg but getting error as file not found after it aplies base64 on the file. (8 Replies)
Discussion started by: ATWC
8 Replies

8. Web Development

Web development learning thread(Javascript, HTML, CSS, angular, vue.js).

Hello All, After getting inspired from Neo, I have started a bit of JS learning these days. Whenever I learn something I will try to post it here(as of now my learning is NOT exactly bookish where I am going chapter by chapter etc, it could be more like small-small project vice kind of), I... (25 Replies)
Discussion started by: RavinderSingh13
25 Replies
mlib_ImageMulAlpha_Inp(3MLIB)				    mediaLib Library Functions				     mlib_ImageMulAlpha_Inp(3MLIB)

NAME
mlib_ImageMulAlpha_Inp - alpha channel multiplication, in place SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_ImageMulAlpha_Inp(mlib_image *srcdst, mlib_s32 cmask); DESCRIPTION
The mlib_ImageMulAlpha_Inp() function multiplies color channels by the alpha channel on a pixel by pixel basis, in place. For the MLIB_BYTE image, it uses the following equation: srcdst[x][y][c] = srcdst[x][y][c] * srcdst[x][y][a] * 2**(-8) For the MLIB_SHORT image, it uses the following equation: srcdst[x][y][c] = srcdst[x][y][c] * srcdst[x][y][a] * 2**(-15) For the MLIB_USHORT image, it uses the following equation: srcdst[x][y][c] = srcdst[x][y][c] * srcdst[x][y][a] * 2**(-16) For the MLIB_INT image, it uses the following equation: srcdst[x][y][c] = srcdst[x][y][c] * srcdst[x][y][a] * 2**(-31) where c and a are the indices for the color channels and the alpha channel, respectively, so c != a. PARAMETERS
The function takes the following arguments: srcdst Pointer to source and destination image. cmask Channel mask to indicate the alpha channel. Each bit of the mask represents a channel in the image. The channel corresponding to the 1 bit of cmask is the alpha channel. RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_ImageMulAlpha(3MLIB), mlib_ImageMulAlpha_Fp(3MLIB), mlib_ImageMulAlpha_Fp_Inp(3MLIB), attributes(5) SunOS 5.11 2 Mar 2007 mlib_ImageMulAlpha_Inp(3MLIB)
All times are GMT -4. The time now is 10:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy