Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Brush
..msdn
GdipCreateSolidFill
GdipCreateTexture
GdipDeleteBrush
GdipScaleTextureTransform
Code examples:
Adding a background image to VFP report (VFP9, ReportListener)
Custom GDI+ class
Adding a background image to VFP report (VFP9, ReportListener)

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:


Download the texture used in this code sample. Otherwise use any image file (BMP, GIF, JPEG, PNG, or TIFF) of reasonable size and quality.

See also:
  • Printing vertical text on VFP reports via generated images
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    2213 bytes  
    Created: 2009-12-16 16:40:20  
    Modified: 2009-12-17 09:46:57  
    Visits in 7 days: 160  
    Listed functions:
    GdipCreateTexture
    GdipDeleteBrush
    GdipDisposeImage
    GdipFillRectangle
    GdipLoadImageFromFile
    GdipScaleTextureTransform
    Printer friendly API declarations
    My comment:
    Picking a texture that is light, unobtrusive and improves the perception of a report is not an ordinary task.

    Notice that the sample code does not call GdiplusStartup and GdiplusShutdown. Obviously the instance of ReportListener takes care of those calls.

    To find the left and top unprintable margins for a particular printer, call GetDeviceCaps with the nIndex parameter set to PHYSICALOFFSET (X | Y) . To obtain the size of the printable area use HORZRES and VERTRES constants.
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.226.5.29)
    3.37 hrs.Example: 'How to detect if additional monitor is connected and active'
    Language: 'C#'
     Example: 'How to retrieve adapter information for the local computer (including MAC address)'
    4.85 hrs.Example: 'How to play AVI file on the _screen'
     Example: 'Scanning a hierarchy of child windows down from the Windows Desktop'
    7.99 hrs.Example: 'Loading a string resource from an executable file'
    8.22 hrs.Example: 'Creating a window using CreateWindowEx function'
     Example: 'Displaying bitmap using the AlphaBlend function'
    1 day(s)Example: 'Playing WAV sounds simultaneously'
     Function: 'AttachVirtualDisk'
     Function: 'SetDlgItemInt'
    Google
    Advertise here!