Microsoft Small Basic
RSS

Navigation





Quick Search
»
Advanced Search »

PoweredBy

Sample: Flickr Collage

RSS
Modified on 2012/01/09 17:23 by 118.71.68.60 Categorized as Samples
Edit

What is Flickr Collage

With this sample you can use flickr to randomize some online photos on a tag.They will displayed on Graphics Window. vietnam visa Edit

Code

tag = "seattle"  
pic = "MyPic"  
  
For i = 1 To 20  
    x = Math.GetRandomNumber(600) - 300  
    y = Math.GetRandomNumber(400) - 200
               
    picName = pic + i
    'ImageList.LoadImage(picName, Flickr.GetRandomPicture(tag))   
    picName = ImageList.LoadImage(Flickr.GetRandomPicture(tag))   
           
    height = ImageList.GetHeightOfImage(picName)    
    width = ImageList.GetWidthOfImage(picName)   
                   
    GraphicsWindow.DrawResizedImage(picName, x, y, width / 2, height / 2)   
EndFor 

In this sample we got photos tagged "seattle"

Edit

Screenshot

Image

ScrewTurn Wiki version 3.0.5.600. Some of the icons created by FamFamFam.