It is currently May 2nd, 2024, 1:20 pm

how to hide a part of an image

Get help with creating, editing & fixing problems with skins
FreakQuency
Posts: 33
Joined: May 4th, 2010, 4:38 pm

how to hide a part of an image

Post by FreakQuency »

how can i limit the skin area so that part of the skin wont showup on screen

for example i have an image of 500x500 but i want to display its upper part (250x500) i also tried to use rotator meter to limit the size of displayed part but couldn't display the proper image.In the previous version the line ImageName=%1.png seemed to work but now it says couldn't find the bitmap file.

In addition i may need the startangle variable to shift the images precisely so is there a way to accomplish this while shifting through pngs and showing upper half of the image at the same time:)

Code: Select all

[daymeter]
Meter=ROTATOR
MeasureName=daymeasure
ImageName=%1.png
X=0
Y=300
H=0
W=500
StartAngle=0
RotationAngle=0
ValueReminder=43200
OffsetX=250	
OffsetY=250
AntiAlias=1
DynamicVariables=1
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: how to hide a part of an image

Post by smurfier »

Rainmeter displays the whole image at all times. It can be resized, rotated, the color can be changed as well was being made transparent, but the whole image will be displayed. You will need to make separate images to be displayed, or make one large bitmap and use the bitmap meter to shuffle through it.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
FreakQuency
Posts: 33
Joined: May 4th, 2010, 4:38 pm

Re: how to hide a part of an image

Post by FreakQuency »

tanks for the reply:)I solved the problem.actually it is possible with a trick in rotator meter as i mentioned before.I used it like an image meter.i omitted the valueremainder part that gives it the rotation and defined the height width and x,y values with some experiment.By doing this i am able to hide any portion of an image.

Code: Select all


[daymeasure]
Measure=Time
Format=%d

[daymeter]
Meter=ROTATOR
MeasureName=daymeasure
ImageName=[daymeasure].png
X=0
Y=300
H=0
W=500
StartAngle=-0.2
RotationAngle=0
OffsetX=250	
OffsetY=250
AntiAlias=1
DynamicVariables=1
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: how to hide a part of an image

Post by jsmorley »

FreakQuency wrote:tanks for the reply:)I solved the problem.actually it is possible with a trick in rotator meter as i mentioned before.I used it like an image meter.i omitted the valueremainder part that gives it the rotation and defined the height width and x,y values with some experiment.By doing this i am able to hide any portion of an image.

Code: Select all


[daymeasure]
Measure=Time
Format=%d

[daymeter]
Meter=ROTATOR
MeasureName=daymeasure
ImageName=[daymeasure].png
X=0
Y=300
H=0
W=500
StartAngle=-0.2
RotationAngle=0
OffsetX=250	
OffsetY=250
AntiAlias=1
DynamicVariables=1
Very clever.. Good job.
FreakQuency
Posts: 33
Joined: May 4th, 2010, 4:38 pm

Re: how to hide a part of an image

Post by FreakQuency »

thanks:) but i have a diffrent problem now i cant use substituted values in formulas.i tried many combinations for this but still no luck.i am putting the code to give an idea

Code: Select all


[monthmeasure2]
Measure=Time
Format=%m
Substitute="01":"0.3" , "02":"0.42" , "03":"0.17" , "04":"0.1" , "05":"0" , "06":"0.06" , "07":"0.04" , "08":"0.26" , "09":"0.51" , "10":"0.33" , "11":"0.43" , "12":"0.43"

[Weekdaymeasure2]
Measure=Time
Format=%w
Substitute="0":"0.34","1":"0.37" , "2":"0.40" , "3":"0.54" , "4":"0.40" , "5":"0.27" , "6":"0.52" 

[weekdayangle]
Measure=Calc
Formula= monthmeasure2 + weekdaymeasure2

[yearmeter]
Meter=ROTATOR
MeasureName=yearmeasure
ImageName=[yearmeasure].png
X=0
Y=300
H=0
W=500
StartAngle=[weekdayangle]
RotationAngle=0
OffsetX=250	
OffsetY=250
AntiAlias=1
DynamicVariables=1


;these lines to show the actual values that the measures have

[test1]
measurename=weekdayangle
meter=string
text=%1
fontsize=22

[test2]
measurename=Weekdaymeasure2
meter=string
y=30r
text=%1
fontsize=22


[test3]
measurename=monthmeasure2
meter=string
y=30r
text=%1
fontsize=22


the only problem here is with [weekdayangle]. its value is daymeasure2 + weekdaymeasure2 without substitutes.
Last edited by FreakQuency on June 26th, 2010, 3:50 pm, edited 1 time in total.
User avatar
JamesAC
Developer
Posts: 318
Joined: July 14th, 2009, 5:57 pm

Re: how to hide a part of an image

Post by JamesAC »

To use the substituted values you need to use DynamicVariables I believe:

Code: Select all

[weekdayangle]
Measure=Calc
Formula= [monthmeasure2] + [weekdaymeasure2]
DynamicVariables=1
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
FreakQuency
Posts: 33
Joined: May 4th, 2010, 4:38 pm

Re: how to hide a part of an image

Post by FreakQuency »

i tried it but still no luck:( it displays 0 as its value.
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: how to hide a part of an image

Post by kenz0 »

It's just hidden under the decimal point. You can see real value if you add "NumOfDecimals" as follows.

Code: Select all

[test1]
measurename=weekdayangle
meter=string
text=%1
fontsize=22
NumOfDecimals=2
.
Image
FreakQuency
Posts: 33
Joined: May 4th, 2010, 4:38 pm

Re: how to hide a part of an image

Post by FreakQuency »

you are right i forgot to add the numofdecimals line but even after that it still shows 0.00 value as i expected.Is there any way to add two substituted values of measures in a formula like the code in my second post?
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: how to hide a part of an image

Post by JpsCrazy »

Add DynamicVariables=1 to the measures with substitutes.