Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-16-13, 08:44 AM   #1
shurshik
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 31
Add background image to the frame

Hi!

I need to add an own image to the frame as a background. I have only 1 problem, the image is bigger than frame, example:
frame 300x300
image 600x400

I need to put a part of this image BUT I don't want that other part is visible outside the frame... I already set layer to background, it doesn't help.

Code:
crMapBackground = myframe:CreateTexture(nil,"BACKGROUND")
crMapBackground:SetTexture("Interface\\AddOns\\*\\test_image")
crMapBackground:SetPoint("CENTER",0,0)
how can I make it invisible outside of the frame? Thanks!
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » Add background image to the frame


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off