Examples of Bitmap


Examples of com.lixia.rdp.Bitmap

        srcx += x - memblt.getX();
        srcy += y - memblt.getY();

        try {
            Bitmap bitmap = cache.getBitmap(memblt.getCacheID(), memblt.getCacheIDX());
            rop.do_array(memblt.getOpcode(), ARDP5.wi, this.width, x, y, cx, cy, bitmap.getBitmapData(), bitmap.getWidth(), srcx, srcy);
            EventWakeUp.getInstance().imageSegmented(x, y, ARDP5.wi.getSubimage(x, y, cx, cy));
            this.repaintAll(x, y, cx, cy);
        } catch (RdesktopException e) {
        }
    }
View Full Code Here

Examples of com.lixia.rdp.Bitmap

            y = this.top;
        }
        cy = clipbottom - y + 1;

        try {
            Bitmap bitmap = cache.getBitmap(triblt.getCacheID(), triblt.getCacheIDX());
            switch (triblt.getOpcode()) {
                case 0x69: // PDSxxn
                    rop.do_array(ROP2_XOR, ARDP5.wi, this.width, x, y, cx, cy, bitmap.getBitmapData(), bitmap.getWidth(), srcx, srcy);
                    patBltOrder(ROP2_NXOR, x, y, cx, cy, fgcolor, bgcolor, brush);
                    EventWakeUp.getInstance().imageSegmented(x, y, ARDP5.wi.getSubimage(x, y, cx, cy));
                    break;
                case 0xb8: // PSDPxax
                    patBltOrder(ROP2_XOR, x, y, cx, cy, fgcolor, bgcolor, brush);
                    rop.do_array(ROP2_AND, ARDP5.wi, this.width, x, y, cx, cy, bitmap.getBitmapData(), bitmap.getWidth(), srcx, srcy);
                    patBltOrder(ROP2_XOR, x, y, cx, cy, fgcolor, bgcolor, brush);
                    EventWakeUp.getInstance().imageSegmented(x, y, ARDP5.wi.getSubimage(x, y, cx, cy));
                    break;
                case 0xc0: // PSa
                    rop.do_array(ROP2_COPY, ARDP5.wi, this.width, x, y, cx, cy, bitmap.getBitmapData(), bitmap.getWidth(), srcx, srcy);
                    patBltOrder(ROP2_AND, x, y, cx, cy, fgcolor, bgcolor, brush);
                    EventWakeUp.getInstance().imageSegmented(x, y, ARDP5.wi.getSubimage(x, y, cx, cy));
                    break;
                default:
//                    logger.warn("Unimplemented Triblt opcode:" + triblt.getOpcode());
                    rop.do_array(ROP2_COPY, ARDP5.wi, this.width, x, y, cx, cy, bitmap.getBitmapData(), bitmap.getWidth(), srcx, srcy);
            }
        } catch (RdesktopException e) {
        }
    }
View Full Code Here

Examples of com.mojang.escape.gui.Bitmap

      BufferedImage img = ImageIO.read(Art.class.getResource(fileName));

      int w = img.getWidth();
      int h = img.getHeight();

      Bitmap result = new Bitmap(w, h);
      img.getRGB(0, 0, w, h, result.pixels, 0, w);
      for (int i = 0; i < result.pixels.length; i++) {
        int in = result.pixels[i];
        int col = (in & 0xf) >> 2;
        if (in == 0xffff00ff) col = -1;
View Full Code Here

Examples of com.sleepycat.je.utilint.BitMap

     * tree.
     */
    private void scavengeDbTree(long lastUsedLsn, long nextAvailableLsn)
        throws DatabaseException {

        committedTxnIdsSeen = new BitMap();
        lnNodesSeen = new TreeSet<CompareSlot>();

        final ScavengerFileReader scavengerReader =
            new ScavengerFileReader(envImpl, readBufferSize, lastUsedLsn,
                                    DbLsn.NULL_LSN, nextAvailableLsn) {
View Full Code Here

Examples of de.yaams.rgssplayer.core.java.Bitmap

    this.area.transition(((Java2DBitmap) snap_to_bitmap().getData()).getData(), null, 0);
  }

  @Override
  public Bitmap snap_to_bitmap() {
    Bitmap b = new Bitmap(Render.getWindow().width(), Render.getWindow().height());

    this.area.drawSprites(((Java2DBitmap) b.getData()).getData().getGraphics());

    return b;
  }
View Full Code Here

Examples of net.rim.device.api.system.Bitmap

    mCheckCodeTextView = new RichTextField();
    mCheckCodeTextView.setText(sResources.getString(CHECK_CODE));

    mCodeArea = new HorizontalFieldManager(FIELD_HCENTER);

    Bitmap bitmap = Bitmap.getBitmapResource("ic_lock_lock.png");
    BitmapField icon = new BitmapField(bitmap, FIELD_VCENTER);

    mCodeTextView = new LabelField("", FIELD_VCENTER);
    mCodeArea.add(icon);
    mCodeArea.add(mCodeTextView);
View Full Code Here

Examples of net.rim.device.api.system.Bitmap

       * fileName = "file:///store/home/user/pictures/screen_" + fileTimeStamp + ".png";
       */
      if (args.length == 1)
      {
        //Step 1: Save the screen to a BitMap object:
        Bitmap bitmapScreen = new Bitmap(Display.getWidth(), Display.getHeight());
        Display.screenshot(bitmapScreen);


        //Step 2: save image to the file system:
        String fileName = args[0].toString();
View Full Code Here

Examples of net.rim.device.api.system.Bitmap

                     bm = writer.encode(contents, format, width, height,hints);
                  }catch(ClassCastException cce){
                    throw new Exception("ZXing Barcode Writer FAILURE - try different paramteres and pray");
                  }
                  //Bitmap b = BarcodeBitmap.createBitmap(bm,0);
                  Bitmap b = new Bitmap(width,height);

                  byte[][] array = bm.getArray();
                  //iterate through the matrix and draw the pixels to the image
                  //a Jeff and BT super hack to make generating a barcode work
                  for (int y = 0; y < height; y++) {
                    int[] argbArray = new int[width];
                   for (int x = 0; x < width; x++) {
                    int grayValue = array[y][x] & 0xff;
                    int pixel = (grayValue == 0 ? 0xFF000000 : 0xFFFFFFFF);
                    argbArray[x] = pixel;
                   }
                   b.setARGB(argbArray,0, width, 0,y, width, 1);
                  }
                 
                 

View Full Code Here

Examples of net.rim.device.api.system.Bitmap

              int scaleX = Fixed32.div( Fixed32.toFP( backgroundImage.getWidth() ), Fixed32.toFP( Display.getWidth() ) );
              int scaleY = Fixed32.div( Fixed32.toFP( backgroundImage.getHeight() ), Fixed32.toFP( Display.getHeight() ) );
              EncodedImage scaledBgImage = backgroundImage.scaleImage32(scaleX, scaleY);

              // Using the scaled bg image draw onto the blank white bitmap.
              Bitmap bgImg = new Bitmap( scaledBgImage.getScaledWidth(), scaledBgImage.getScaledHeight() );
                Graphics g = new Graphics( bgImg );
                if( bgColor != -1 ) {
                  g.setColor( bgColor );
                } else {
                  g.setColor( Color.WHITE );
View Full Code Here

Examples of net.rim.device.api.system.Bitmap

     *            If the Dialog is a global dialog.
     */
    public DialogRunner( Dialog dialog, boolean isGlobal ) {
        _dialog = dialog;
        _global = isGlobal;
        Bitmap bitmap = Bitmap.getPredefinedBitmap( Bitmap.QUESTION );
        setIcon( bitmap );
        // _dialog.setOverlapping( true );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.