X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fdali-script-v8%2Fdocs%2Fcontent%2Fimage-view.js;h=66f22407513ce32c3ff487f79f45f194f9ed9c3a;hb=b0d0b451bd3414c8f502810f45fcacba2882d717;hp=19a050231032ffa2e4a3a0580a6012c2f84477f0;hpb=864042717041b6d9ad114b2e2f360f5f07c7682b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/docs/content/image-view.js b/plugins/dali-script-v8/docs/content/image-view.js index 19a0502..66f2240 100644 --- a/plugins/dali-script-v8/docs/content/image-view.js +++ b/plugins/dali-script-v8/docs/content/image-view.js @@ -27,10 +27,8 @@ dali.stage.add( imageView ); // vertexShader = ""; // vertex shader ( optional) // fragmentShader = ""; // fragment shader ( optional) // hints = // shader hints ( optional) -// [ "requiresSelfDepthTest", // Expects depth testing enabled -// "outputIsTransparent", // Might generate transparent alpha from opaque inputs -// "outputIsOpaque", // Outputs opaque colors even if the inputs are transparent -// "modifiesGeometry" ]; // Might change position of vertices, this option disables any culling optimizations +// [ "OUTPUT_IS_TRANSPARENT", // Might generate transparent alpha from opaque inputs +// "MODIFIES_GEOMETRY" ]; // Might change position of vertices, this option disables any culling optimizations var shader = { "vertexShader": myVertexShader, @@ -45,10 +43,10 @@ imageView.size = imageViewSize; // If not set, it will use either the natural im dali.stage.add( imageView ); var image = { - "rendererType" : "image", - "imageUrl" : "myImage.jpg", - "width" : desiredWidth, // The desired image width while loading (optional but preferable to set for efficiency) - "height" : desiredHeight, // The desired image height while loading (optional but preferable to set for efficiency) + "visualType" : "IMAGE", + "url" : "myImage.jpg", + "desiredWidth" : desiredWidth, // The desired image width while loading (optional but preferable to set for efficiency) + "desiredHeight" : desiredHeight, // The desired image height while loading (optional but preferable to set for efficiency) "shader" : shader // Optional };