#How to make an image out of the frame
1 messages · Page 1 of 1 (latest)
what do you mean "make a logo png out of the frame"
you see the logo at the top?
no
i see a facebook logo, a discord logo, and an instagram logo
then like a noodle peeking in
in the center
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?
i wanna see the full picture
okay
try adjusting its position to be in the middle of the screen
you can see only the bottom of the picture
make sure it is all loaded
wait i show you what i want
no i understand what you want
just see the logo
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.
i understood the whole time
like in that
again, i know what it means for a thing to be visible
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
okay
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
i want my logo like this
as i have said now three times, i know
^
so okay now try each one of those changes in isolation
ok
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
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
minecraft has gotten so dystopian
what should i do now?
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?
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
what
it means nothing now
okay clearly the problem here is some positioning thing
i dont wanna reposition the image
i quite literally cannot tell you what to do because the way to figure this out is to experiment with the different layout primitives
i want it there but i want to see the image full
and i do not have your codebase
i can guess at stuff and guide you along that experimentation
but if you keep telling me what you want and asking "how do I do it" understand that i am not going to be able to just magically tell you
you can tell me why the image cut off?
yeah, because it was positioned above the screen
screen coordinates might work differently than you expect
i wanna it above the screen
like this
yea but i wanna it above the screen visualy
like this
so then tweak the numbers a bit?
you see its above the screen?
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
okay
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?