`

as3 load image

 
阅读更多
private var _loader:Loader = new Loader( );

_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);

_loader.load(new URLRequest("com/asxp/skin/assets/theme.jpg"));

public function onComplete(event:Event):void{
            var image:Bitmap = Bitmap(_loader.content);
            var bitmap:BitmapData = image.bitmapData;
            image.width=this.stage.stageWidth;
            image.height=this.stage.stageHeight;
            this.addChild(image);
            this.setChildIndex(image,0);
           
       
       
        }
 
分享到:
评论

相关推荐

    caffe.io.load_image(IMAGE_FILE, color=False)函数报错

    caffe.io.load_image(IMAGE_FILE, color=False)函数报错 1. TypeError: _open() got an unexpected keyword argument ‘as_grey’ 解决方法:   把caffe.io.load_image读取图片改成cv2读取: image = cv2.imread...

    JavaScript-Load-Image-master.zip

    JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped ...

    image segmentation

    the descriptions include Gamma distribution models for image data corrupted by multiplicative noise as in remote sensing synthetic aperture radar (SAR), and medical imaging ultrasound. Also included ...

    CDIMAGE 2.52

    t load segment in hex for El Torito boot image (e.g. -yt7C0) f use a faster way to generate short names -k (keep) create image even if fail to open some of the source files -m ignore maximum image...

    Microsoft CDIMAGE v2.52

    t load segment in hex for El Torito boot image (e.g. -yt7C0) f use a faster way to generate short names -k (keep) create image even if fail to open some of the source files -m ignore maximum image...

    浅谈cv2.imread()和keras.preprocessing中的image.load_img()区别

    1、image.load_img() from keras.preprocessing import image img_keras = image.load_img('./original/dog/880.jpg') print(img_keras) img_keras = image.img_to_array(img_keras) print(img_keras[:,1,1]) 效果...

    vb窗体设计

    Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) ReleaseCapture SendMessage hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0& End Sub Private Sub Image2_Click() Form1....

    终极骰子.rar

    Dim image1_name, image2_name, image3_name As String image1_name = ".\\image\\" + CStr(a) + ".jpg" image2_name = ".\\image\\" + CStr(b) + ".jpg" image3_name = ".\\image\\" + CStr(c) + ".jpg" Image...

    ImageM_image_Follow_filtring_segmentation_processing_

    It allows to load images apply filtering and/or segmentation and run basic analyses. Interface is largely inspired from the open source software "ImageJ". The interface is packaged as a ...

    GraphicEx9.9

    to load many common image formats. This library is primarily designed to load images as background (buttons, forms, toolbars) and textures (DirectX, OpenGL) or for image browsing and ...

    keras读取h5文件load_weights、load代码操作

    关于保存h5模型、权重网上的示例非常多,也非常简单。主要有以下两个函数: 1、keras.models.load_model() 读取网络、权重 2、keras.models.load_weights() 仅读取权重 load_model代码包含load_...import numpy as np

    VB课程设计.doc

    Private Sub Form8_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxShockwaveFlash1.Movie = "E:\实验运行场\VB.NET程序设计\系统\image\登陆界面.swf" ...

    人脸识别打卡程序.rar

    imgElon = face_recognition.load_image_file('ImagesBasic/Elon Musk.jpg') imgElon = cv2.cvtColor(imgElon, cv2.COLOR_BGR2RGB) imgTest = face_recognition.load_image_file('ImagesBasic/Elon Test.jpg') ...

    基于深度学习高性能中文车牌识别

    支持 ...import hyperlpr3 as lpr3 # Instantiate object catcher = lpr3.LicensePlateCatcher() # load image image = cv2.imread("images/test_img.jpg") # print result print(catcher(image))

    Machine Learning for OpenCV_Intelligent image processing with Python(2017).epub

    Chapter 3, First Steps in Supervised Learning, will introduce you to the topic of supervised learning by reviewing some core concepts, such as classification and regression. You will learn how to ...

    Qemu-1.0.1 for windows

    -hdc/-hdd file use 'file' as IDE hard disk 2/3 image -cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master) -drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i] [,cyls=c,heads=...

    H2OUVE_100.0.9.2.zip

    拯救者15ISK 解锁nvme pcie3.0w 使速度可以到达2300MB/s -? or -h Show this help. -fea Checking whether BIOS support all functions of tool. ...-out <ImageFile> Save as an new ImageFile.

    【MATLAB源码】图片数据点提取.zip

    Load the image file. % 2. Calibrate axes dimensions. You will be prompted to select 4 points % on the image. Zoom and pan enabled. % 3. Grab points by clicking on points. Right-click to delete a ...

Global site tag (gtag.js) - Google Analytics