Hello!
I need to merge two images (BufferedImage) in Java. It wouldn't be a problem if there was no transparency. The base image already has some transparency. I want to keep this as it is and apply a "mask" to it, the second image. This second image has no opaque pixels, in fact it's almost completely transparent, just has some less tr...
Hi,
this is the script i made
// Create image
$img = imagecreatetruecolor($w, $h);
// Transparent image
$white = imagecolorallocate($img,255,255,255);
imagefilledrectangle($img,0,0,$w,$h,$white);
imagecolortransparent($img, $white);
//imagealphablending( $img, true );
//imagesavealpha( $img, true );
// Shape color
$bgColor = ima...
I have a mask bitmap (bmpMask) that I am drawing onto a destination bitmap (bmpDest). Both bitmaps have alpha channels but are already full of opaque content.
What I want to do is produce transparent areas using GDI+ 'Draw...' methods on bmpMask so that bmpDest shows through when I draw bmpMask over it.
Of course gMask.DrawLine(Pens.T...
Hello. Is there a way I can determine if an HDC uses alpha channel? I read Question 333559 and Question 685684, but their questions are about BITMAP. Apparently, some HDC has alpha channel (though they may not use it. Call this "Type 1") while others do not ("Type 2"). I know this by doing the following:
Given a HDC,
Create a compatib...
Ok I know this practically sounds elementary, but I don't understand what I'm not doing correct here.
I draw a simple rounded Rect
backing1.graphics.beginFill(bgColor);
backing1.graphics.lineStyle(borderSize, borderColor1);
backing1.graphics.drawRoundRect(position1, position1, sizeW-1, sizeH-1, cornerRadius1);
backing1.graphics.endFill...
Hi, I'm working on making an iPhone App where there are two ImageViews and when you touch the top one, wherever you tapped, the bottom one shows instead.
Basically what I want to do is cut an ellipse/roundedrect out of an image. To do this I was thinking on either clipping the image, or changing the alpha pixels in the rect to zero. I a...
I can't find any PHP script to compute Krippendorff's Alpha. I need this for a project I'm working on, but the only things that I was able to find online are either written in Python (that I know nothing of) or are for SAS/SPSS software suites.
Any help is appreciated.
Thanks!
...
Using the HTML5 <canvas> element, I would like to load an image file (PNG, JPEG, etc.), draw it to the canvas completely transparently, and then fade it in. I have figured out how to load the image and draw it to the canvas, but I don't know how to change its opacity once it as been drawn.
Here's the code I have so far:
var canvas = do...
file.txt contains:
##w##
##wew##
using mac 10.6, bash shell, the command:
cat file.txt | grep [[:alpha:]]* -o
outputs nothing. I'm trying to extract the text inside the hash signs. What am i doing wrong?
...
I have a PNG image that has an unsupported bitmap graphics context pixel format. Whenever I attempt to resize the image, CGBitmapContextCreate() chokes on the unsupported format
I receive the following error (error formatted for easy reading):
CGBitmapContextCreate: unsupported parameter combination:
8 integer bits/component;
...
Hello,
I'm trying to learn how to use vertex buffers by making a sprite engine. I create a new buffer for each texture page I have, and can add instances of textured quads to the buffers, interleave their vertex and uv information and render them out fine using DrawElements.
However, I can't find any way of setting the alpha on individ...
Any ideas on how to create a cover that has alpha 100 but is able to let a button behind it be touched, and an action to be called.
i dont want to apply the action to the cover, nor change the buttons image - as a convaluted set up is required for each one.
any ideas? what im after is effective not a see-through button, but a touch thr...
Scenario
I would like to save images with alpha transparency as .png and images without alpha transparency as .jpg (even if their original format is .png or .gif). How can I detect whether or not an image has alpha transparency using ImageMagick?
...
Hello,
I've got a problem making alpha PNGs with PHP GD. I don't have imageMagik etc.
Though the images load perfectly well in-browser and in GFX programs, I'm getting problems with Flash AS3 (actionscript) understanding the files. It complains of being an unknown type. But, exporting these files from Fireworks to the same spec works f...
I am new to iphone development.the alpha value of the movie player changes from 0 to 1 while playing the video. I don't want to show the change in alpha value.I want to keep the alpha value to 1 when loading .I am using the apple reference sample program.Thanks.
...
I would like to make a JPEG image file with some pixels that are partially transparent or fully transparent, similar to a PNG file with an alpha channel. Is this possible? If so, how would I go about doing this?
I would like to use the image on a website. If I try to do this, would it work in any or all of the popular browsers (IE 7+, F...
I am resizing PNG images using the GD image library function ImageCopyResampled(). It all works fine, I can even keep alpha blending transparency with the use of ImageCreateTrueColor() rather than using ImageCreate() to create the resized image.
The problem is, that if I use ImageCreateTrueColor() rather than ImageCreate() the file size...
I want to be able to create a greyscale image with no alpha from a png in the app bundle.
This works, and I get an image created:
// Create graphics context the size of the overlapping rectangle
UIGraphicsBeginImageContext(rectangleOfOverlap.size);
CGContextRef ctx = UIGraphicsGetCurrentContext();
// More stuff
CGContextDrawImage(ctx...
Hi!
I'm trying to compose two videos, and I'm using the alpha plug-in to make the white color transparent.
To test the alpha plug-in I'm creating the pipeline with gst-launch.
The first test I done was:
gst-launch videotestsrc pattern=smpte75 \
! alpha method=custom target-r=255 target-g=255 target-b=255 angle=10 \
! videomix...
My application lets the user save/load images with alpha values to the camera roll on the device. I can see in the Photos application that these images are appropriately alpha'd, as alpha'd areas just appear black. However, when I load these images back into the application using the valueForKey:UIImagePickerControllerOriginalImage messa...