Results 1 to 4 of 4

Thread: How to get the effective area of the picture by vb6?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,749

    How to get the effective area of the picture by vb6?

    A PNG image with a transparent channel, for example, where does the left start with pixels and the top start with pixels? Add a border to the active area of the image.

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,749

    Re: How to get the effective area of the picture by vb6?

    Please help me move to the question area.

  3. #3
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,908

    Re: How to get the effective area of the picture by vb6?

    Can you explain what you mean with where does the left and top start?
    An image is a rectangle with a height and a width, in pixels.
    So 0,0 is the top left.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,749

    Re: How to get the effective area of the picture by vb6?

    Quote Originally Posted by Arnoutdv View Post
    Can you explain what you mean with where does the left and top start?
    An image is a rectangle with a height and a width, in pixels.
    So 0,0 is the top left.
    I converted the image from the SVG component to the transparent PNG format. But there are a lot of blanks (transparent) around, so you need to get a non-blank area, just like a screenshot, you need to know which area to cut.

    For example, for a 300*500 pixel picture, only the middle 245*380 area is actually non-transparent.
    If you want to analyze the ARGB format of PNG, is there any algorithm to quickly obtain the middle area, and finally copy this image to other controls for display, or save a new PNG image

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width