Java Code Examples for sun.java2d.loops.BlitBg#BlitBg
The following examples show how to use
sun.java2d.loops.BlitBg#BlitBg .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SurfaceDataProxy.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 2
Source File: SurfaceDataProxy.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 3
Source File: SurfaceDataProxy.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 4
Source File: SurfaceDataProxy.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 5
Source File: SurfaceDataProxy.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 6
Source File: SurfaceDataProxy.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 7
Source File: SurfaceDataProxy.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 8
Source File: SurfaceDataProxy.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 9
Source File: SurfaceDataProxy.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 10
Source File: SurfaceDataProxy.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 11
Source File: SurfaceDataProxy.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 12
Source File: SurfaceDataProxy.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 13
Source File: SurfaceDataProxy.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }
Example 14
Source File: SurfaceDataProxy.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * This is an alternate implementation for updating the cached * SurfaceData from the source (primary) SurfaceData using a * background color for transparent pixels. * A simple BlitBg is used to copy the pixels from the source to * the destination SurfaceData with the specified bgColor. * A subclass can override the normal updateSurfaceData method * and call this implementation instead if it wants to use color * keying for bitmask images. */ public void updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor) { SurfaceType srcType = srcData.getSurfaceType(); SurfaceType dstType = dstData.getSurfaceType(); BlitBg blitbg = BlitBg.getFromCache(srcType, CompositeType.SrcNoEa, dstType); blitbg.BlitBg(srcData, dstData, AlphaComposite.Src, null, bgColor.getRGB(), 0, 0, 0, 0, w, h); dstData.markDirty(); }