Questions tagged [compositing]

Compositing is the combining of visual elements from separate sources into single images.

See Digital compositing on Wikipedia.

61 questions
0
votes
2 answers

Why does not using premultiplied alpha have "significantly worse performance"?

QPainter is responsible for drawing and compositing in Qt. There is a section in the documentation that talks about performance. My question is regarding the bolded sentence from the following paragraph. Raster - This backend implements all…
Indiana Kernick
  • 4,485
  • 2
  • 19
  • 40
0
votes
1 answer

Android view animation on top of GLSurfaceView is slow

We've noticed that when you put Android views with view animation (nothing complex, just AlphaAnimation and TranslateAnimation) on top of a GLSurfaceView, the animation runs slowly (i.e. you see a lot of stuttering.) I am calling pause() on the…
0
votes
2 answers

Draw grayscale image to another BufferedImage's alpha band using API only

I've got two BufferedImages: one is TYPE_INT_ARGB, and the other is TYPE_BYTE_GRAY. How to replace the entire color image's alpha band with the grayscale image using API only, and without disturbing the RGB values? final int width = 200; final int…
0
votes
1 answer

Queuing data into swapchain of IDirect3DDevice9

I am new to direct3D . I am trying to write an image on direct3ddevice and get the same image in xrgb from it. I create a texture and get the surface from GetSurfaceLevel(). I use a image file and convert it into ARGB and write it onto the locked…
forcebrute
  • 21
  • 3
0
votes
1 answer

Matlab: Alpha-Compositing with gray scale mask

I am trying to emulate the functionality of alpha compositing in Matlab or to be more specific the compose types CopyOpacity and Over from ImageMagick. First goal is to mask out a region with heavy aliasing edges like the black regions in the images…
0
votes
1 answer

Refactoring a complicated opengl blend

I am trying to reproduce the effects of a fairly complicated blend operation (corrected). (1-(1-src_alpha)*dest_alpha)*src+(1-src_alpha)*dest_alpha*dest src and dest refer to the respective rgba components in the source and destination buffers. …
markt1964
  • 2,258
  • 1
  • 17
  • 42
0
votes
1 answer

I have Image Compositing (white/alpha mask) working in OpenTK/C#, except every pass through scales the output

So here's the problem I've been trying to solve. Given: a) A product image. Expected to be full color b) A mask of that image: RGBA(0,0,0,0) means ignore, RGBA(255,255,255,255) means replace c) A composite image: This is composited with the…
applejacks01
  • 189
  • 12
0
votes
1 answer

How to composite multiple images in one stream

I'm trying to composite multiple images into a single stream that will be piped as a response. I'm using Node.js and GraphicsMagick for Node at https://github.com/aheckmann/gm. If I'm compositing two images into a stream it works fine and for…
NateW
  • 2,434
  • 4
  • 22
  • 40
0
votes
0 answers

Compositing Transparent Polygons with OpenGL ES 2.0

I have a 2D object that needs to be rendered to the screen as semi-transparent using OpenGL ES 2.0. However, the object is is composed of several overlapping polygons. When I use the blend function glBlendFunc(GL_SRC_ALPHA,…
0
votes
2 answers

Overlapping transparent UIViews

I’m overlaying two UIViews with a white backgroundColor at 25% opacity. In a small part, they overlap each other, meaning that at that area, they are summed to 50% opacity. I’d like to keep that 25% opacity, even if the two views overlap,…
Luke
  • 8,709
  • 14
  • 74
  • 140
0
votes
1 answer

JPanels Flickering during overlap

I am trying to make a program that randomly displays JPanels at the top of the screen. These JPanels contain a PNG BufferedImage of a smiley face (by overriding PaintComponent). Unfortunately, whenever I run the program and the panels are drawn in…
0
votes
3 answers

Draw stroke on HTML canvas with different levels of opacity

The problem I'm trying to create a brush tool with opacity jitter (like in Photoshop). The specific problem is: Draw a stroke on an HTML canvas with different levels of opacity. Pixels with higher opacity should replace pixels with lower opacity;…
0
votes
1 answer

iPhone Quartz. How do I create a matte using a path rather then a bitmap?

In the visualization app I'm writing I want to shape a graphic using a matte created with a path. The graphic is a horizontal rectangular strip with various shapes drawn within. Atop this rectangular strip I want to draw an ellipse to act as a matte…
dugla
  • 12,300
  • 23
  • 79
  • 127
0
votes
2 answers

Python in Nuke: except StopIteration

Basically what I'm trying to do currently is set up a script in Nuke using python that takes nodes selected by the user and adds shuffle nodes to them for an easy compositing workflow. However I'm stuck on getting Nuke to add the shuffles onto the…
0
votes
2 answers

Transparent regions of a BufferedImage are writing out black

I know this is something to do with compositing but I can't work out what. In an earlier section of code, a particular list of pixels in a BufferedImage are set to be transparent black: for(Pixel p : closed){ Color c = new…
mtrc
  • 1,237
  • 2
  • 16
  • 36