Search found 10215 matches

by fxm
Mar 11, 2021 19:04
Forum: General
Topic: DRAW and WINDOW statement
Replies: 4
Views: 180

Re: DRAW and WINDOW statement

Therefore, on the other hand it would seem that "M x, y" is not affected by the custom coordinates system.
by fxm
Mar 11, 2021 17:01
Forum: General
Topic: DRAW and WINDOW statement
Replies: 4
Views: 180

Re: DRAW and WINDOW statement

I searched for any change about DRAW in the changelog.txt and I found this: Version 1.01: "DRAW now draws U/E/R/F/D/G/L/H using line-drawing routines rather than pixel-by-pixel, resulting in steadier lines and much better speed". That could explain the present behavior than you demonstrate.
by fxm
Mar 11, 2021 15:05
Forum: General
Topic: DRAW and WINDOW statement
Replies: 4
Views: 180

Re: DRAW and WINDOW statement

Already specified in the DRAW documentation page:
Draw respects the current clipping region as set by the View (Graphics) statement, but its coordinates are not affected by the custom coordinates system.
since 2018-08-22.

Update your documentation manual, or use the FBWiki !
by fxm
Mar 11, 2021 6:37
Forum: Documentation
Topic: Page: FBgfx Image and Font Buffers
Replies: 15
Views: 642

Re: Page: FBgfx Image and Font Buffers

Done, but I left out 'we could therefore show this structure rather as information'. Yes indeed, this is not like for the EVENT and FBARRAY structures for example, where it is mandatory to access the names of the member data to obtain the desired information. In the case of the IMAGE structure, a s...
by fxm
Mar 10, 2021 22:58
Forum: Documentation
Topic: Page: FBgfx Image and Font Buffers
Replies: 15
Views: 642

Re: Page: FBgfx Image and Font Buffers

At the ImageInfo documentation page, by presenting 'ImageInfo()' as an alternative to easily access the main characteristics of an image, rather than directly accessing the internal FB.IMAGE structure through a typed pointer to member data, we could therefore show this structure rat...
by fxm
Mar 10, 2021 14:05
Forum: Documentation
Topic: Page: FBgfx Image and Font Buffers
Replies: 15
Views: 642

Re: Page: FBgfx Image and Font Buffers

(C) GET/PUT image header example which is quite confusing and obsolete I think. Neither confused nor obsolete. This simple example shows how access the image information directly in the image header structure ( 'PUT_HEADER' , being an alias of the 'IMAGE' Type) and not through the &...
by fxm
Mar 09, 2021 12:24
Forum: Documentation
Topic: Page: FBgfx Image and Font Buffers
Replies: 15
Views: 642

Re: Page: FBgfx Image and Font Buffers

Yes, if we un-comment the 'pixels()' property, 'type' can no longer be used as a member name. But I'm not sure if the member name 'type' is used as is by the internal code, but think it is, otherwise I don't see the point in commenting out this property declaration/de...
by fxm
Mar 09, 2021 10:19
Forum: Documentation
Topic: Page: FBgfx Image and Font Buffers
Replies: 15
Views: 642

Re: Page: FBgfx Image and Font Buffers

To my knowledge, a single fb.image structure is defined in fbgfx.bi, also used by the internal code.
by fxm
Mar 09, 2021 10:06
Forum: General
Topic: Draw string on buffer mistake, no warning?
Replies: 6
Views: 292

Re: Draw string on buffer mistake, no warning?

Yes, it is a FreeBASIC error message that may or may not appear, depending on where the overflow occurs outside of data of the array falsely passed as an image buffer.
by fxm
Mar 09, 2021 8:57
Forum: Documentation
Topic: Page: FBgfx Image and Font Buffers
Replies: 15
Views: 642

Re: Page: FBgfx Image and Font Buffers

At the ImageInfo documentation page, by presenting 'ImageInfo()' as an alternative to easily access the main characteristics of an image, rather than directly accessing the internal FB.IMAGE structure through a typed pointer to member data, we could therefore show this structure rath...
by fxm
Mar 09, 2021 7:36
Forum: General
Topic: Draw string on buffer mistake, no warning?
Replies: 6
Views: 292

Re: Draw string on buffer mistake, no warning?

This behavior is common to all graphics keywords that use an image buffer as a parameter. In FreeBASIC, image buffers can be provided through arrays (old method as in QB) or through pointers (new method). When parsing such an instruction line with an array name of pointers as an argument instead of ...
by fxm
Mar 08, 2021 22:06
Forum: Tips and Tricks
Topic: remove duplicates intries in an array
Replies: 11
Views: 396

Re: remove duplicates intries in an array

Not optimized neither exhaustively tested: Sub RemoveDuplicate (Arr() As Integer) Dim As Integer i, j Do For i = LBound(Arr) To UBound(Arr) - 1 For j = i + 1 To Ubound(Arr) If Arr(i) = Arr(j) Then Swap Arr(j), Arr(Ubound(Arr)) Redim Preserve Arr(LBound(Arr) To Ubound(Arr) - 1) Continue Do End If Nex...
by fxm
Mar 08, 2021 8:51
Forum: Tips and Tricks
Topic: Zip/Unzip on Windows Without Dependencies
Replies: 6
Views: 322

Re: Zip/Unzip on Windows Without Dependencies

There are other recent macros or keywords (added in rev 1.08):
__FB_BUILD_DATE_ISO__
__FB_BUILD_SHA1__
__FB_ARG_COUNT__
__FB_QUOTE__
__FB_UNQUOTE_
__FB_EVAL__
__FB_ARG_EXTRACT__

fb_MemMove()
fb_MemCopy()
fb_MemCopyClear()
ThreadSelf()
by fxm
Mar 08, 2021 6:29
Forum: General
Topic: ReDim an array within a type
Replies: 7
Views: 967

Re: ReDim an array within a type

Or: Type v As Ubyte u1 As Ubyte u2 End Type Type dat As v Vec(Any) End Type Dim Shared As dat some(1 to 20) Redim (some(1).Vec)(1 to 10) Print some(1).Vec(1).u1 Print some(1).Vec(1).u2 Or: Type v As Ubyte u(1 To 2) End Type Type dat As v Vec(Any) End Type Dim Shared As dat some(1 to 20) Redim (some(...
by fxm
Mar 07, 2021 17:05
Forum: General
Topic: ReDim an array within a type
Replies: 7
Views: 967

Re: ReDim an array within a type

See the Redim documentation page: .....In some cases, it is necessary to specify parentheses around the expression (especially if the array expression itself contains parentheses) - see the examples below..... (the last example) For your code: redim (some(1).Vec1)(1 to 10)

Go to advanced search