I'll do a quick DuckDuckGo for it...
wym. as long as it works ill be happy. but are you aware a png is a file. how are you gonna do that
Does this help?
do you wanna just help with the project
I've got my hands full at the moment.
oh.
Dim DummyVar As Image = Image.FromFile("image.png")
Using stream As New MemoryStream()
DummyVar.Save(stream, ImageFormat.Bmp)
End Using
Dim frm As New Form
Dim pb As New PictureBox
pb.Image = DummyVar
frm.Cursor = New Cursor(DirectCast(pb.Image, Bitmap).GetHicon())
frm.ShowDialog()
what about this
Here's a block that will set a cursor.
You can stick a costume in the first slot to set a custom cursor, and the offset x and y is used to position the image.
There are a few things to take note of
- There is a size limit, which I don't know (and probably set by the browser or os).
- When the custom cursor hits the edge of the screen, it turns into a pointer.
- This block works with both svg and bitmap costumes.
- The offset only works for a costume, not text (css cusor name).
whats the error block
this doesnt work
The strings with a $ in it have to use backticks `, not regular quotes.
The best thing to do is drag and drop the image into snap to get the original code.
still
just creating an image
Right click the costume, and click "get blocks". If that doesn't show up, click the image on the forum, then drag and drop the bigger image into snap.
Edit: apparently resizing the image broke it. Try dragging and dropping the image into snap now (sorry).
thx
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.