Jump to content
Bixby Sayz

Get bitmap of a canvas

Recommended Posts

Been messing around with various tutorials on forms/canvas. There are routines to get the canvas of a bitmap, manipulate bitmaps, write bitmaps to bitmaps, write bitmaps to canvas, but no? way to get an existing canvas into a bitmap where you can work with it?

 

Looking to take the canvas of a form and get it into some shape/form where the various manipulation functions (which all expect a bitmap) will work.

Link to comment
Share on other sites

I'm missing something here.

- SafeCopyCanvas copies Canvas to Canvas. None of the bitmap routines will work with this.

- GetBitmapCanvas returns the Canvas of a Bitmap. Again none of the bitmap routines will work with a Canvas.

 

If you are starting with a Canvas (of a form, of a timage, of a whatever) how do you get it into a form where the routines that expect a bitmap will work. (All of the useful functions expect a bitmap not a canvas).

 

I'm not trying to resize anything. There is a routine to copy a bitmap with transparency to another BITMAP. What I want to do is copy that bitmap with transparency to a canvas. Which is where I flipped it around and asked "If I have a canvas, is there a way to get/treat that as a bitmap so all those useful functions will work?"

 

The answer seems to be no.

Link to comment
Share on other sites

from or to a bitmap canvas.
That's the point: there is no bitmap!

 

There is a way to take a bitmap and get a canvas.

There is a way to copy/convert a bitmap to a canvas.

There is a way to copy a canvas to a canvas.

There is no way (that I am aware of) to take a canvas and get a bitmap.

 

There are a lot of useful routines but they all require a bitmap. If your source is a canvas then you are screwed. If you try to substitute a bitmap for a canvas in the copy routine you mentioned you crash SCAR.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...