HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: joule on 2006-10-21 01:44:14

Title: $imageabs2, $alignabs
Post by: joule on 2006-10-21 01:44:14
I'm using "Playlist single column". Maybe someone could give a quick beginners explanation to the functions $imageabs2, $alignabs and $drawrect? The wiki doesn't give me anything.

What are the specific parameters? What is alignabs intended for?

$alignabs(,,,,,)

$imageabs2(,,,,,,,,,)

$drawrect(,,,,brushcolor-242-242-242 pencolor-0-0-0)
Title: $imageabs2, $alignabs
Post by: joule on 2006-10-21 15:51:26
$imageabs2(,,,,,,,,,)


I am filling this in as i discover the functions. This thread can in the future when completed be linked to when people ask about these functions (available documentations are not really explanatory at the moment). I am sorry if I use the wrong terminology somewhere. Feel free to fill in and correct me.

$imageabs2(width,height,,,,,,,,)

The first two parameters are width and height of the displayed image. These parameters are used to resize the image (zoom). If numbers are left out it will default to display the original size of the image.

$imageabs2(width,height,left-offset,top-offset,,,,,,)

The third and fourth parameters define from what pixel (line) the image should begin to be displayed, i.e. it cuts the image.

$imageabs2(width,height,left-offset,top-offset,width-displayed,height-displayed,,,,)

The fifth and sixth parameters define the actual displayed width and height of the picture. This will cut the image in the right and bottom edge if numbers are below the width and height defined by the first and second parameters explained above.

$imageabs2(width,height,left-offset,top-offset,width-displayed,height-displayed,x-pos,y-pos,,)

The seventh and eighth parameters are the coordinates where you want to display the image.

$imageabs2(width,height,left-offset,top-offset,width-displayed,height-displayed,x-pos,y-pos,file,)

The ninth parameter is the full, absolute path to the image file.

$imageabs2(width,height,left-offset,top-offset,width-displayed,height-displayed,x-pos,y-pos,file,alpha-'0-255')

The tenth and last parameter defines the alpha transparency of the image. alpha-255 gives no transparency and 0 gives full transparency (invisible).
Title: $imageabs2, $alignabs
Post by: tool++ on 2006-10-21 16:15:37
Does anyone have a link to the proper, up to date documentation of the new things, as there's stuff like $button and $button2 iirc. :/
Title: $imageabs2, $alignabs
Post by: ...Just Elliott on 2006-10-21 18:53:38
changelogs usually have the new functions syntaxes in
Title: $imageabs2, $alignabs
Post by: joule on 2006-10-23 16:40:35
Updated. I'd be grateful if someone could help me with the last parameter for $imageabs2.
Title: $imageabs2, $alignabs
Post by: Davison on 2006-10-23 16:44:41
last parameter is Alpha, i.e. the transparency of the object.

Ranges from 0-255 i believe...with 255 being 100% visible and 0 being 0% visible.

...,alpha-'0-255')
Title: $imageabs2, $alignabs
Post by: joule on 2006-10-23 16:59:18
last parameter is Alpha, i.e. the transparency of the object.

Ranges from 0-255 i believe...with 255 being 100% visible and 0 being 0% visible.

...,alpha-'0-255')


Thanks! Updated.

This should complete the description of the $imageabs2 function.

Maybe someone of the more experienced could help me check if something in my descriptions should be better exlained. Maybe I'm using the wrong terms somewhere or explaining something from the wrong perspective.

I'm only doing this because I thought it was needed, and I needed to figure them out for myself anyway (I was searching for documentation about the functions but didn't find anything).
Title: $imageabs2, $alignabs
Post by: LXtreme on 2006-10-23 17:12:45
changelogs usually have the new functions syntaxes in


i didn't find an explanation for $imageabs2, too. neither on the web, nor in the changelogs of the downloads.
so thanx for the thread joule!! i am sure many ppl will appreciate it.

(for me the thread came a little too late as i discovered how it works by "try & error"  )
Title: $imageabs2, $alignabs
Post by: nauqneyugn on 2006-10-24 02:30:05
Does anyone know if imageabs2 has trouble dealing with large image files? 

I'm resizing some larger (1000x1000ish) album art for my single column playlist style, and all off them are extremely fuzzy.  The smaller ones (less than 600x600) resize okay.
Title: $imageabs2, $alignabs
Post by: start78 on 2006-10-24 13:30:01
And what is the difference between imageabs and imageabs2? Is it just a kind of new version?