Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1558

Help: Rainmeter Skins • Re: Image Scaling anomaly?

$
0
0
Thanks for the feedback Yincognito

My expectation was that if the displayed image size, constrained by the container's width, the height of the image to maintain the aspect ratio would change depending on the image, and not get cropped to the size of the previous displayed image; without the need to force a redraw of the meter.
If the folder contained an image that was rescaled to 1px high, for instance, then every image after that would display cropped to 1px high.
That is why I thought it might be a "bug".

Maybe this is does not occur when the container has a width and height constraint. But I read on this community somewhere that only using a single constraint allows the image to be oriented to the top-left corner of the container. Using width and height, the image is always centred in the container, which is not what I wanted.

Anyway, the solution that currently works for me is;

Code:

; Fetch random Image[GallerySource]Measure=PluginPlugin=Plugins\QuotePlugin.dllPathName="#ImagePath#"FileFilter=*.jpg;*.jpeg;*.gif;*.bmp;*.png"Subfolders=#UseSubfolders#; the following deals with image scaling issueOnUpdateAction=[!UpdateMeter GalleryDisplay][!Redraw]; Display fetched image[GalleryDisplay]MeasureName=GallerySourceMeter=IMAGEDynamicVariables=1X=14Y=11W=#ImgWidth#UseExifOrientation=1PreserveAspectRatio=1LeftMouseDownAction=["[GallerySource]"]MouseOverAction=[!ShowMeter GalleryName][!UpdateMeter GalleryName][!Redraw]MouseLeaveAction=[!HideMeter GalleryName][!UpdateMeter GalleryName][!Redraw]
… image meter alignment parameters would be handy to have. Then I could specify the height and width of the meter, and then specify;

Code:

Alignment=top,left
as one of the meter's parameters.

Statistics: Posted by DavidRGreen — Today, 11:47 am



Viewing all articles
Browse latest Browse all 1558

Trending Articles