:: Архив конференции по VFP до 2005 года
Рисование
Леокади
Автор
Привет!

Приложение фокспро формирует документ WORD
В этот документ мне нужно "врисовать" картинку.
Как это сделать?

Ну или хотя бы просто вставить готовую картинку

Заранее благодарна
Ratings: 0 negative/0 positive
Re: Рисование
Дмитрий Петров

Сообщений: 3066
Откуда: Пермь
Дата регистрации: 09.07.2001
Вставка картинки
oword.activedocument.Shapes.AddPicture(GETFILE(),.F.,.T.)
Ratings: 0 negative/0 positive
Re: Рисование
Леокади
Автор
А как создать эту самую картинку?

Пусть даже не в Worde
Ratings: 0 negative/0 positive
Re: Рисование
Alex Roublev

Сообщений: 3695
Откуда: Ярославль
Дата регистрации: 28.09.2002
2 Леокади:

Цитата:
А как создать эту самую картинку?
Пусть даже не в Worde

Хе-хе: в Adobe Photoshop, в MS Paint, в Corel Draw, в Macromedia Freehand, в Corel Xara, ...etc., etc.

А если посущественней, то существуют библиотеки ActiveX. Такую библиотеку положить на форму и рисовать, что душе угодно.
У меня что-то было. Посмотрю. А так можешь открыть поисковую систему Google и набрать в строке поиска "ActiveX painting" или "ActiveX drawing" и посмотреть что и почем будет предложено.



Отредактировано (13.03.05 15:37)


------------------
И волки сыты, и овцы целы, и пастуху - вечная память...
Ratings: 0 negative/0 positive
Re: Рисование
Alex Roublev

Сообщений: 3695
Откуда: Ярославль
Дата регистрации: 28.09.2002
Кроме всего прочего рисовать можно на самой форме VFP, а потом сохранять сие "безобразие" в bitmap-файл и печатать (а если надо, то и вставлять в пресловутый MS Word). Далее...

Вот, поискал в Google. Пакет LeadTools у меня, кажется, есть. Но он немаленький по размеру. По модему будет трудно передавать. На первых страницых поиска нашел такую информацию о компонентах, которые работают с графикой:

www.programurl.com

NCTImageStudio ActiveX DLL

NCTImageStudio ActiveX DLLs is a package of 12 controls, which allows you to implement any kind of imaging routines within your application, such as getting screenshots and images from scanners and TV tuners, WEB and digital cameras and saving to AVI, image files management and conversion, visualization, painting and printing, comparison, digital filters and video effects and much more. Company: NCT Company
Date Released: 15-04-2003
Program Size: 5274 KB
License: Shareware

www.download.com

NCTImageStudio ActiveX DLLs 1.9.1 popular

--------------------------------------------------------------------------------
Free download 4.86MB

Publisher: Online Media Technologies
Date added: November 10, 2003
License: Free to try; $249.00 to buy
Minimum requirements: Windows 98/Me/2000/XP
Uninstaller included?: Yes
Limitations: Nag screen

User reviews
Software Publisher's Description

NCTImageStudio is a package of ActiveX controls that allow you to implement any kind of imaging routines within your applications: getting images from TWAIN-compliant scanners and tuners, or USB, Web, and digital cameras, image files management and conversions, extracting frames from animated GIFs and multipaged TIFFs, saving a set of existing images as an AVI video file, overlay images with alpha transparency, draw primitives and text within images, view and print images, apply various color adjustments, digital filters, transformations and photographic effects to images, and more.
Our controls can be effectively used in your applications and imaging databases for image compression, thumbnail generation, image format conversions, batch processing, painting and printing, animation generation and preview, and other functions.

Supported formats: BMP, JPEG, GIF (animated), PNG, TIFF (LZW, RLE, CCITT3/4), J2K (JPEG2000), PCX, TGA, RAS, WMF, EMF, ICO, CUR, ANI.

User reviews of NCTImageStudio ActiveX DLLs

one of the few that handles vector formats
Reviewer: ericj
Lots of controls deal with bitmaps, that's easy. Finally something that deals with vector data.

www.hallogram.com

LeadTools

Image Editing and Digital Painting Software
LEADViEW is the latest version of the best image editing software package available. LEAD has taken its more than 12 years experience in image processing and conversion and wrapped it in an intuitive, easy to use user interface. If you are a professional or a novice at image manipulation, LEADViEW will have what you need to get your image processing job done.

General Features
Retouch, repair, and edit photos with easy-to-use, high-quality photo enhancement features.
One application that can open, save, export and convert numerous file formats.
Complete set of digital painting tools that will facilitate working with brushes, shapes, area filling, text, and more.
Complete set of image editing and image composition tools.
Import images directly from scanners, digital cameras and the screen.
WYSIWYG Print Preview that can change the size, orientation and position of the image on the fly.
Manage photos using LEAD Photo Album included FREE with LEADViEW 4.0!
Create and tune web graphics with built-in Web tools, artistic drawing and text tools.
Convert/capture home and business multimedia files with LEAD Multimedia Converter Pro, included FREE with LEADViEW 4.0!
Over 48 special effects including zoom, blur, un-sharpen mask, stitch, picturize, and more.
Control the color appearance of photos with manual and automatic color adjustment/enhancement capabilities.
Share photos electronically with friends and family via email.
Key Features
Color Manipulation:


Support for various color spaces: RGB, HSB, HLS, CMY, CMYK and Lab.
Palette Customization
Color Enhancement/Adjustment: Gamma correction, color balance, colored gray , hue remapping, color channel splitting and merging, etc...
Invert · Intensity Detect · Solarize · Posterize · Brightness Adjustment · Contrast Adjustment · Hue Adjustment · Saturation Adjustment · Gamma Adjustment · Balance Colors · Half-Tone · Color Resolution · Gray Scale · Colored Gray Remap Intensity · Remap Hue · Histogram Equalize · Histogram Stretch Intensity Histogram Local Equalize · Histogram Contrast · Split Channels (RGB, CMY, HSB, HLS, CMY, and Alpha) Merge Channels (RGB, CMY, HSB, HLS, and CMY) · Unique Colors · Customize Palette
Image Manipulation:


Flip
Mirror
Rotate
Shear
De-skew
Add border
Add frame
Crop
Resize
Canvas Resize
Preview image Histogram
Selection Manipulation :


Several color replacing and image masking tools and operations.
Floater creation, selection feather, manipulation and transformation tools.
Select all
Select none · Invert · Scale · Resize · Include/Exclude Color · Feather · Load Selection (Disk and Alpha) · Save Selection (Disk and Alpha)
Artistic Effects :


Many image processing special effects are included.
Image filters.
Paintbrush tube support allowing for virtually an infinite number of possible custom paintbrushes.
Add borders and frames to pictures.
Motion Blur · Radial Blur · Zoom Blur · Gaussian Blur · Anti-Alias · Average · Median · De-speckle · Add Noise · Max · Min · Unsharp Mask · Sharpen · Combine · Multiply · Add · Stitch · Freehand Wave · Wind Polar · Zoom Wave · Radial Wave · Swirl · Wave · Wave Shear · Emboss Punch · Ripple · Bending · Cylindrical · Spherize · Impressionist · Oilify Underlay · Pixelate · Mosaic · Picturize · Edge Detection · Erosion · Dilation · Contour · Gradient Filter · Laplacian Filter · Sobel Filter · Prewitt Filter Shift & Difference Filter · Line Segment Filter
Importing/Exporting Files :


Importing from Screen
Importing from TWAIN
Importing from Digital Camera
Export as a HTML
Export as Tuned JPEG
Export as Tuned PNG
Export as Tuned GIF
Send as an Email Attachment
Digital Imaging Tools :


Digital camera support
Photo enhancement filters
Color adjustments
Batch Conversion :
With LEADViEW's batch conversion feature, you can convert a batch of image files with different formats to a single file format. Also with LEADViEW, you can convert pages in multi-page image files to separate single-page files, using a file format you choose. Additionally, LEADViEW batch conversion gives you the ability to convert both Raster and Vector formats (supported by LEADViEW) to Raster formats.


Productivity Tools :


Built-in thumbnail image browser
Multiple levels of Undo/Redo
Sophisticated image stitching
Batch file conversion to convert entire folders of images at a time
Image navigation control with each view
Dialogs with proofing and auto-proofing capabilities
Cursor information dialog to display the current tool operation information
Customizable toolbars
Roll-up tools windows to maximize the work surface area.
Organize thousands of images with LEAD Photo Album
Image Browser :
File Browser lets you view, sort, and process image files. This dialog enables better image management since the user can see a preview of the image file before performing any operation on it. Use the File Browser to perform tasks such as copying, renaming, moving, deleting, and batch converting images. Also, view individual file information and data. For fast and easy access, the Browser has its own window, which can remain open or minimized in the workspace while you edit images.


Web Image Development Tools :


Create image rollovers with no programming experience.
JPEG/GIF/PNG Web Tuners to optimize image compression with image preview and estimated download times.
HTML mapping with the ability to preview the image inside the web browser.
Export as HTML album in LEADViEW and photo album.
Painting Tools :


Paintbrush: LEADViEW paintbrush capabilities extends the user's drawing experience by enabling him/her to control the size, stroke contents, brush edge softness, spacing between strokes, stroke transparency, and brush contents density. Also, change the bleed rate of the brush by controlling the way the paint fades as it approaches the edge of a brush stroke (as if painting with a wet brush).
Shapes: Simple and complex shapes can be drawn easily with LEADViEW. Lines, rectangles, ellipses, polygons, and curves can be created with great power over the shape appearance, by controlling the background filling style via choosing between solid color, color gradients, patterns, and transparent filling. Also, manipulate the shape border style, width, shape corners form and color, as well as adjust the transparency over the image.
Selections: Create manual selections such as rectangular, elliptical, polygonal, and free-hand. LEADViEW also supports automatic selections through surface, border, and color selections. Surface selects all adjacent pixels that are similar in color to the pixel that is clicked. Border selects adjacent pixels until it reaches a certain chosen boundary color, while Color Selection will select all pixels in the bitmap similar to the color clicked. The automatic selection methods allow setting of the selecting tolerance which will control the amount of variance allowed from the color to be selected.
Filling: Fill images through a variety of background styles including solid colors, color gradients, and pattern bitmaps. Fill transparency can be set to allow some of the original background to be visible throughout the fill. Three filling methods are available in LEADViEW; Surface, which will fills adjacent pixels that are similar in color value to the pixel that is clicked; Border, which will fills adjacent pixels until it reaches a certain selected boundary color; and Color Replace, which replaces the color of all pixels in the bitmap similar to the color that is clicked. Each of the filling methods allows the user to set the filling tolerance which will control the amount of variance allowed from the color to be filled.
Text drawing: Draw text in LEADViEW with this sophisticated feature control. Control the font, background style, character edges style, and transformations (scale, and angle). Also available is the ability to set the text alignment and opacity. As in all other painting tools you’ll have the ability to simulate paper "grain" just as natural tools react with the texture of the surfaces beneath them.


--------------------------------------------------------------------------------

LEADVIEW.........$249.00


www.globalshareware.com

WebPic Deluxe

--------------------------------------------------------------------------------

Author Company:
Softuarium

Description :

WebPic Deluxe - WebPic Deluxe v2.0 is an image processing, viewing and conversion ActiveX control. It reads over 20 and writes 10 file formats.
The control features powerful image processing functions such as cropping, rotation, resizing, resampling, screen/window capture, painting image on canvas, gamma and color channel correction, as well as over 50 filters and special effects.

After completing the transaction you will be issued registration code to unlock the control. To prevent nag screen from showing please add following code to your application:

ControlName.Unlock(regcode)

Please make sure that 'Unlock' method is called every time your application runs. Because of that you should place it in 'FormLoad' or 'FormCreate' event handler (or equivalent specific to your development language).



Отредактировано (13.03.05 15:36)


------------------
И волки сыты, и овцы целы, и пастуху - вечная память...
Ratings: 0 negative/0 positive
Re: Рисование
Alex Roublev

Сообщений: 3695
Откуда: Ярославль
Дата регистрации: 28.09.2002
В решениях сайта:

Цитата:
Построение диаграмм используя WinApi на чистом VFP + Ole TreeView

www.foxclub.ru

автор - Петров Андрей (JellFish)

Печать содержимого (в данном случае - диаграмма) с VFP-формы.

------------------------------------------------------------------------------------------------------------------

ActiveX:

Proworks Flipper CAD Control 2.50 (3 Мб)

Looking for 2D graphics solutions? More than just a drawing tool,
the feature-rich Flipper CAD Control gives you the versatility you
need! From intuitive graphical interfaces, to professional CAD
applications, you'll be surprised at the variety of tasks you can
solve. Choose from a wide selection of shape types, including
pictures and text. Organize with layering and shape grouping.
Customize with access to every aspect of the control. Manipulate
with features like scaling, rotation, zooming, and much more!

Leadtools ClassLib Pro v11.5 (19 Мб)

Leadtools ClassLib Pro library comes with any of the LEADTOOLS Pro
and Express toolkits. It includes support for annotations, region
of interest, image processing, ISIS and TWAIN scanning, drawing,
animation, etc...

Polar ActiveToolbox ActiveX v.1.1 (3 Мб)

BitmapFX ActiveX control - Displays and edits bitmaps.Features various bitmap
effects, zoom, drawing to bitmap surface...

------------------------------------------------------------------------------------------------------------------
Ratings: 0 negative/0 positive


Извините, но у вас нет прав для того, чтобы оставлять сообщения в этом форуме.

On-line: 2 (Гостей: 2)

© 2000-2024 Fox Club 
Яндекс.Метрика