Examples of Dimensions


Examples of com.google.api.ads.adwords.axis.v201306.cm.Dimensions

    // Create third party redirect ad.
    ThirdPartyRedirectAd thirdPartyRedirectAd = new ThirdPartyRedirectAd();
    thirdPartyRedirectAd.setName("Example third party ad #" + System.currentTimeMillis());
    thirdPartyRedirectAd.setUrl("http://www.example.com");
    thirdPartyRedirectAd.setDimensions(new Dimensions(300, 250));
    // This field normally contains the javascript ad tag.
    thirdPartyRedirectAd.setSnippet("<img src=\"http://goo.gl/HJM3L\"/>");
    // DoubleClick Rich Media Expandable format ID.
    thirdPartyRedirectAd.setCertifiedVendorFormatId(232L);
    thirdPartyRedirectAd.setIsCookieTargeted(false);
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201309.cm.Dimensions

    // Create third party redirect ad.
    ThirdPartyRedirectAd thirdPartyRedirectAd = new ThirdPartyRedirectAd();
    thirdPartyRedirectAd.setName("Example third party ad #" + System.currentTimeMillis());
    thirdPartyRedirectAd.setUrl("http://www.example.com");
    thirdPartyRedirectAd.setDimensions(new Dimensions(300, 250));
    // This field normally contains the javascript ad tag.
    thirdPartyRedirectAd.setSnippet("<img src=\"http://goo.gl/HJM3L\"/>");
    // DoubleClick Rich Media Expandable format ID.
    thirdPartyRedirectAd.setCertifiedVendorFormatId(232L);
    thirdPartyRedirectAd.setIsCookieTargeted(false);
View Full Code Here

Examples of com.google.api.adwords.v201306.cm.Dimensions

      imageAdGroupAd.setAd(imageAd);

      // Create template ad, using the Click to Play Video template (id 9).
      TemplateAd templateAd = new TemplateAd();
      templateAd.setTemplateId(9L);
      templateAd.setDimensions(new Dimensions(300, 250));
      templateAd.setName("Mars Cruise video ad #" + System.currentTimeMillis());
      templateAd.setDisplayUrl("www.example.com");
      templateAd.setUrl("http://www.example.com");

      // Create template ad data.
View Full Code Here

Examples of com.google.api.adwords.v201309.cm.Dimensions

      imageAdGroupAd.setAd(imageAd);

      // Create template ad, using the Click to Play Video template (id 9).
      TemplateAd templateAd = new TemplateAd();
      templateAd.setTemplateId(9L);
      templateAd.setDimensions(new Dimensions(300, 250));
      templateAd.setName("Mars Cruise video ad #" + System.currentTimeMillis());
      templateAd.setDisplayUrl("www.example.com");
      templateAd.setUrl("http://www.example.com");

      // Create template ad data.
View Full Code Here

Examples of com.reveregroup.gwt.imagepreloader.Dimensions

    ImagePreloader.load(url, new ImageLoadHandler() {
      @Override
      public void imageLoaded(ImageLoadEvent event) {
        if (!event.isLoadFailed()) {
          Dimensions dimensions = event.getDimensions();
          originalWidth = dimensions.getWidth();
          originalHeight = dimensions.getHeight();
          addImage();
        }
        onImageLoad(event.isLoadFailed());
      }
    });
View Full Code Here

Examples of def_classes.Dimensions

  /**
   * Gets the dimensions of the currently used image
   * @return The dimensions of the currently used image
   */
  public Dimensions getCurrentImageDimensions() {
    return new Dimensions(
        sprites.getImage(animationIndex, frameIndex).getWidth(null),
        sprites.getImage(animationIndex, frameIndex).getHeight(null));
  }
View Full Code Here

Examples of fcagnin.jglsdk.glimg.ImageSet.Dimensions

        try {
            String filePath = Framework.findFileOrThrow( "main.dds" );
            ImageSet imageSet = DdsLoader.loadFromFile( filePath );

            SingleImage image = imageSet.getImage( 0, 0, 0 );
            Dimensions dims = image.getDimensions();

            shineTexture = glGenTextures();
            glBindTexture( GL_TEXTURE_2D, shineTexture );
            glTexImage2D( GL_TEXTURE_2D, 0, GL_R8, dims.width, dims.height, 0, GL_RED, GL_UNSIGNED_BYTE,
                    image.getImageData() );
View Full Code Here

Examples of kodkod.engine.bool.Dimensions

    final int univSize = universe().size();
    if (c==Expression.UNIV) {
      final IntSet all =  Ints.rangeSet(Ints.range(0, univSize-1));
      return factory().matrix(Dimensions.square(univSize, 1), all, all);
    } else if (c==Expression.IDEN) {
      final Dimensions dim2 = Dimensions.square(univSize, 2);
      final IntSet iden = Ints.bestSet(dim2.capacity());
      for(int i = 0; i < univSize; i++) {
        iden.add(i*univSize + i);
      }     
      return factory().matrix(dim2, iden, iden);
    } else if (c==Expression.NONE) {
View Full Code Here

Examples of org.apache.pivot.wtk.Dimensions

     * because it will never be called to use them.
     */
    public class TabButtonSkin extends ButtonSkin {
        @Override
        public int getPreferredWidth(int height) {
            Dimensions preferredSize = getPreferredSize();
            return preferredSize.width;
        }
View Full Code Here

Examples of org.apache.pivot.wtk.Dimensions

            return preferredSize.width;
        }

        @Override
        public int getPreferredHeight(int width) {
            Dimensions preferredSize = getPreferredSize();
            return preferredSize.height;
        }
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.