#How to make an image out of the frame

1 messages · Page 1 of 1 (latest)

vivid mauveBOT
#

<@&987246399047479336> please have a look, thanks.

swift meteor
#

what do you mean "make a logo png out of the frame"

bitter minnow
#

you see the logo at the top?

swift meteor
#

no

#

i see a facebook logo, a discord logo, and an instagram logo

#

then like a noodle peeking in

#

in the center

bitter minnow
#

yeeah

#

that one

#

at the center top

swift meteor
#

are you trying to say that it is out of frame

#

meaning it is going off the screen

#

and you dont want it going off the screen?

bitter minnow
#

i wanna see the full picture

swift meteor
#

okay

bitter minnow
#

like the half of the picture just vanishes

#

logo.png

swift meteor
#

try adjusting its position to be in the middle of the screen

bitter minnow
#

you can see only the bottom of the picture

swift meteor
#

make sure it is all loaded

bitter minnow
swift meteor
#

no i understand what you want

bitter minnow
#

you see the fyremc logo?

#

i want mine like this

swift meteor
#

like the fyre festival?

#

terrible branding

bitter minnow
#

you can see full

#

not half like mine

#

and its on the top

#

i wanna make mine out of the box too

#

like half in the box

#

half is not

#

you understand now?

#

I want the logo to stick out of the window halfway, so that half of it is outside the program and half of it is still visible inside.

swift meteor
#

i understood the whole time

bitter minnow
swift meteor
#

again, i know what it means for a thing to be visible

bitter minnow
#

here is the code

#

can you help?

swift meteor
#

i see the code

#

my dude i am reading it

#

you need to understand that debugging code at a distance just reading a file is a lot harder than when you can actually tweak it and see what happens

#

give me a moment

bitter minnow
#

okay

swift meteor
#

try this

#

invisibleLayer.setPrefSize(root.getWidth(), root.getHeight() - 400);

#

actually maybe

#

iv.setTranslateY(220);

#

just try both of those independently

#

show me what it looks like when you do

bitter minnow
#

i did both

bitter minnow
swift meteor
#

as i have said now three times, i know

bitter minnow
#

ok sorry

#

i thought you dont understand me, sorry

swift meteor
bitter minnow
#

ok

#

what should i do?

swift meteor
#

so okay now try each one of those changes in isolation

bitter minnow
#

ok

swift meteor
#

my guess is that no matter what you do the logo is going to either cover a UI element or be off screen

#

this is because the buttons don't know about it

#

so you probably need to move the image into the same "container" as the buttons

#

but lets see what happens with those first

bitter minnow
#

this is the first one

#

second one

#

so the first one changes nothing

#

like i think you dont have to do something with the position

swift meteor
#

minecraft has gotten so dystopian

bitter minnow
#

what should i do now?

swift meteor
#

maybe we need to evaluate the invisibleLayer bit of code but

#

how did you write the code for everything thus far?

#

like you did these things, why did you do them?

bitter minnow
#

I thought that because of the invisiblelayer the entire image would be visible.

#

but the invisablelayer stays in the box too

#

like in the root

#

so what should i do?

#

i even tried setClip(null);

#

but it changed nothing

bitter minnow
#

it means nothing now

swift meteor
#

okay clearly the problem here is some positioning thing

bitter minnow
#

i dont wanna reposition the image

swift meteor
#

i quite literally cannot tell you what to do because the way to figure this out is to experiment with the different layout primitives

bitter minnow
#

i want it there but i want to see the image full

swift meteor
#

and i do not have your codebase

#

i can guess at stuff and guide you along that experimentation

swift meteor
bitter minnow
swift meteor
#

screen coordinates might work differently than you expect

bitter minnow
#

i wanna it above the screen

swift meteor
#

the (0, 0) is usually at the top left corner

#

not the bottom left

bitter minnow
swift meteor
#

so going +100 means going down

#

-100 means going up

bitter minnow
#

yea but i wanna it above the screen visualy

bitter minnow
swift meteor
bitter minnow
#

you see its above the screen?

swift meteor
#

i am going to bow out before i get pointlessly mad

#

please stop telling me what you want. i know what you want. i am asking you questions about your thought process when positioning the elements to see if its something fundamental you are missing or to guide you to finding the right layout primitives

#

someone else will pick this question up soon enough

bitter minnow
#

okay

faint breach
#

I am not experienced with this, but , just to get it out of the way, have you tried changing the alignment values to bring it at the center?