Search:

Type: Posts; User: petersen

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Need help getting mouse move in synch with scrolling pixels of picture

    I of course realize that your picture is kind of "unlimited" size. How to update the "base" pertaining to the current display is a matter of arrangment, that is a separate issue, e.g. assuming that...
  2. Re: Need help getting mouse move in synch with scrolling pixels of picture

    I believe I know the issue and I want to help, but I don't want to study your code in order to talk in your project's terms.

    The screenshot below shows there are three ways to navigate the...
  3. Re: GDIplus -- How to draw gradient parallelogram?

    As I see it, the correct answer should be "there is no way".

    There is no parallelogram path in GDIplus as such. One might try polygon and then use GdipSetLinePresetBlend, but the result would no...
  4. Re: GDIplus -- How to draw gradient parallelogram?

    The project is with a single form, total code lines are about 150.

    Will appreciate it if you can use the said project to show what specific calls to add/modify.

    Edited: The majority of the...
  5. [RESOLVED] GDIplus -- How to draw gradient parallelogram?

    Shown below is a gradient rectangle, drawn by the ready-to-run project in the attached ZIP, using GDIplus.

    My questions is that, is there a way to draw a gradient parallelogram (instead of...
  6. Replies
    28
    Views
    15,006

    Re: to draw curve on picturebox in vb6

    I've had a test-run of cyborg's code referred in the immediate above posting; a good work.

    I like people using their own subroutines to do the graphics tasks whereever they can (instead of just...
  7. Replies
    28
    Views
    15,006

    Re: to draw curve on picturebox in vb6

    I hold a different opinion. In geometry, an arc is a closed segment of a differentiable curve in the two-dimensional plane.

    Though we might draw an arc from a given two points, but the arc so...
  8. Replies
    23
    Views
    4,236

    Re: Gradient Gauges

    Stupidiot,

    You're right. It is sort of a quickie done following a test-run of the original code, just to show a way to arrive at what is desired, i.e. jump from blue to red. Gradual blending...
  9. Replies
    23
    Views
    4,236

    Re: Gradient Gauges

    The code in the immediate above posting by LeandroA is an excellent one; clean and simple. However, it still has not satisfied what is desired:



    I have therefore modified the code a little, so...
  10. Replies
    23
    Views
    4,236

    Re: Gradient Gauges

    Yes, what you have so far tends to be a rough finish, because the arc so drawn lacks antialiasing. There are two approaches for you to smooth the edges with antiasliasing effects.

    Alternative 1: ...
  11. Replies
    5
    Views
    1,373

    Re: Looking for Inventory Accouting

    navaspp,

    I don't believe that here you would get a single answer which really carries some weight, simply because vbForums is not the right place to explore such a subject.

    How do I know that? ...
  12. Replies
    15
    Views
    1,054

    Re: The Case of the Morphing Icon!

    ctullar,

    Sorry I removed the link before you got a chance of accessing it. I re-list it here: xxxxx(removed as originally intended)xxxxx (URL will be removed latest by tommorrow).

    The purpose...
  13. Re: Making small pictures from a large picture

    jmsrickland,

    Would you like to try the following? (Because it is a quickie, just make the necessary adjustment as you see fit, if needed.)



    Dim w As Long, h As Long
    Dim w2 As Long,...
  14. Replies
    28
    Views
    2,700

    Re: Video problems in exe

    jmsrickland,

    Thank you. It was written 10 years ago at a time when people could easily download music and movie files from sites like Ka..... That is why you see the title sorting order includes...
  15. Replies
    28
    Views
    2,700

    Re: Video problems in exe

    Luis2011,

    On an amateur basis I had done a multi-media player quite some years ago. I used to use it for audio files such as mp3, wav, mid, wma, air, au, snd, rmi and enc, and video files such as...
  16. Re: [RESOLVED] Resize JPGs or GIFs from disk, get HBITMAP

    I see your point; sometimes I myself would be in a similar situation, e.g. in a BAS. In that case, stdPicture is a choice. Most of the time I use DIB when DIB class is there, otherwise I may create...
  17. Re: [RESOLVED] Resize JPGs or GIFs from disk, get HBITMAP

    Dilettante,

    Just for a general reference:

    -- Why take the trouble via StdPicture when you can directly have "PictureBox1.Picture = LoadPicture(filespec)".

    -- Even if you go via StdPicture,...
  18. Replies
    15
    Views
    1,054

    Re: The Case of the Morphing Icon!

    CTullar,

    I've examined all individual icons of your file; all are properly done.

    Would you like to see how many icons are actually there in your EXE file and that they are all intact (they are...
  19. Replies
    24
    Views
    2,780

    Re: Color Converter

    Ritzky,

    Would you please do me a favour. Look up your English dictionary and explain to me what does the word "карандаш" mean?

    By the way, I am certain it is Russian, masculine gender.
  20. Replies
    24
    Views
    2,780

    Re: Color Converter

    Ritzky,

    I try to answer your questions in two parts:


    PART 1: How to convert from a "0xFDFDFD" format to a "80FDFDFD" format?

    In VB6 terms, "0xFDFDFD" is stated as "&HFDFDFD". The color...
  21. Replies
    47
    Views
    3,215

    Re: Adding a vb6 object into a program?

    I haven't read all earlier postings in detail, but from what I can gather, the following two points might be relevant:

    (1) It is not unusual that "gap" between painted pixels can exist, when the...
  22. Re: blur a specific region in picture box

    Actually any of the two links given by RhinoBull should be more than sufficient to answer the subject question (btw, I became acquainted to the author of the 2nd years ago; he is a very capable and...
  23. Replies
    3
    Views
    2,423

    Re: i need code to view TIFF header

    Martin is right that "that is a lot to ask" in the sense that it is not a straight-forword reading as one would do in say a BMP or ICO case.

    TIFF header looks like this


    Private Type...
  24. Replies
    18
    Views
    9,883

    Re: Loan Amortization - Exact Day Monthly

    David,

    I believe it is a "business mathematics" or "money mathematics" issue. VB and Excel merely happens to be a tool to facilitate getting a certain level of result here, as such it is not an...
  25. Replies
    18
    Views
    9,883

    Re: Loan Amortization - Exact Day Monthly

    As I see it, this is possible. However, not with a single fumular; it would entail building a model with lots of zip-zag calculations.

    If you use the following code, you would obtain a figure...
  26. Replies
    3
    Views
    2,021

    Re: [RESOLVED] Copying between PictureBoxes

    Picture2.Picture = LoadPicture()
  27. Thread: Crop an image

    by petersen
    Replies
    4
    Views
    935

    Re: Crop an image

    VBClassicRocks,

    In order to make it work, a few points for your reference

    -- You also need to ensure that Form1.ScaleMode = vbPixels (otherwise slack areas would exist in Picture1).

    -- Since...
  28. Replies
    13
    Views
    1,417

    Re: PSet Compile Error

    I rarely use PictureBox (I mostly use DIB for painting operations), but because you mentioned Pset and Line, it reminds me of what I encountered some years back.

    One day a friend of mine told me...
  29. Replies
    13
    Views
    1,417

    Re: PSet Compile Error

    Fair enough. Would you please see what are the respective (1) chip brands and model types and (2) Windows platforms of your two machines -- one without any problem, the other with some problems in...
  30. Replies
    7
    Views
    1,143

    Re: Join Video Files

    Please take this as some kind of reference only; I am myself a layman.

    About ten years ago when DVD was not that popular in PC yet, an ordinary movie MOV/AVI/DAT was about 750 to 850 MB in data...
  31. Replies
    13
    Views
    1,417

    Re: PSet Compile Error

    Since the syntax is correct from the very beginning, why waste time keep talking, why not just upload your project so that everyone can try it and hopefully give you a solid answer?
  32. Re: Is possible to have a transparent container

    Apparently I misunderstood your intention, so I now disqualify myself in the discussion.
  33. Re: Is possible to have a transparent container

    Jmsrickland,

    If I understand you correctly, my answer is "it can be done", albeit how difficult it is.

    How difficult is it? It depends on what subroutines you already have at your disposal. ...
  34. Replies
    17
    Views
    13,831

    Re: Icons In a VB6 Executable

    This shall be my last posting in this thread.

    Simply put, in DLL/EXE files, icons may be organized on "individual" or "group" basis. Some EXE may have all icons on an individual basis, but not...
  35. Replies
    17
    Views
    13,831

    Re: Icons In a VB6 Executable

    I got your PM, but I am unable to obtain what I want, i.e. 2 EXE files and the screenshot requested in my last posting.

    I am not interested in the software that you used to replace icons.

    To...
  36. Replies
    17
    Views
    13,831

    Re: Icons In a VB6 Executable

    You wrote that



    I believe I know the exact reason for what you encountered, i.e. sometimes okay and sometimes not. To prove what I suspect is truly the case, please send me the following...
  37. Replies
    17
    Views
    13,831

    Re: Icons In a VB6 Executable

    I would take a look of it, if you could send me the following:

    (1) The EXE file which has the icon that you want to replace.

    (2) Which icon inside the said EXE that you want to replace (with a...
  38. Replies
    17
    Views
    13,831

    Re: Icons In a VB6 Executable

    This posting attempts to remove your confusion and to entertain your request.

    -- Earlier on I explained that Exploer relies only on Bitmap Information Header, hence is able to display the...
  39. Replies
    18
    Views
    7,291

    Re: How to compile ASM code in VB exe

    I am a bit curious. You said "......guaranteed to work on all Windows version". Would you please let me know: (i) Does this include WinME? and (ii) Do your programs require an install/uninstall...
  40. Replies
    18
    Views
    7,291

    Re: How to compile ASM code in VB exe

    Yes, indeed there is a binary version, ImageEnXLibrary.OCX.

    So I set out to have a run on 32-bit Vista. However, when I tied to include it in Project Componets, I got an error message, basically...
Results 1 to 40 of 277
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width