picturedream.implementation
Class PictureUtils

java.lang.Object
  |
  +--picturedream.implementation.PictureUtils

public class PictureUtils
extends java.lang.Object

Title: PictureDream

Description: some utilities used with IPicture

Copyright: Copyright (c) 2003 MRoc

Organisation: MRoc Audiosolutions

Version:
1.0
Author:
MRoc mail@mroc.de

Constructor Summary
PictureUtils()
           
 
Method Summary
static char[][] divideChannels(int[] data)
          divides the given 32bit buffer into 4 separate channels, alpha, red, green, blue (argb)
static int[] mergeChannels(char[][] channels)
          merges the given 4 separate channels as argb into the 32bit picture buffer. alpha, red, green, blue (argb)
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

PictureUtils

public PictureUtils()
Method Detail

divideChannels

public static char[][] divideChannels(int[] data)
divides the given 32bit buffer into 4 separate channels, alpha, red, green, blue (argb)

mergeChannels

public static int[] mergeChannels(char[][] channels)
merges the given 4 separate channels as argb into the 32bit picture buffer. alpha, red, green, blue (argb)